diff --git a/adminstuds.php b/adminstuds.php index 02fe5b58a7b3c47665b97971fc189813ddb8b347..b642d845291beab76bb5f9466eae933119315f97 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -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; }