Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-02-20 10:58:50 +01:00
parent 1740a1d949
commit e9deb8d22e

View File

@ -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;
}