Skip to content
Snippets Groups Projects
Commit e9deb8d2 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

run CS


Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent 1740a1d9
No related branches found
No related tags found
No related merge requests found
......@@ -154,10 +154,10 @@ if (isset($_POST['update_poll_info'])) {
$poll->password_hash = PasswordHasher::hash($password);
$updated = true;
}
if ($poll->password_hash == null || $poll->hidden == true){
if ($poll->password_hash === null || $poll->hidden === true){
$poll->results_publicly_visible = false;
}
if ($resultsPubliclyVisible != $poll->results_publicly_visible && $poll->password_hash != null && $poll->hidden == false) {
if ($resultsPubliclyVisible !== $poll->results_publicly_visible && $poll->password_hash !== null && $poll->hidden === false) {
$poll->results_publicly_visible = $resultsPubliclyVisible;
$updated = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment