run CS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
1740a1d949
commit
e9deb8d22e
@ -154,10 +154,10 @@ if (isset($_POST['update_poll_info'])) {
|
|||||||
$poll->password_hash = PasswordHasher::hash($password);
|
$poll->password_hash = PasswordHasher::hash($password);
|
||||||
$updated = true;
|
$updated = true;
|
||||||
}
|
}
|
||||||
if ($poll->password_hash == null || $poll->hidden == true){
|
if ($poll->password_hash === null || $poll->hidden === true){
|
||||||
$poll->results_publicly_visible = false;
|
$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;
|
$poll->results_publicly_visible = $resultsPubliclyVisible;
|
||||||
$updated = true;
|
$updated = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user