Use static typed comparison for checking if session has been started

This commit is contained in:
Joshua Ramon Enslin 2021-01-30 21:01:05 +01:00
parent 231a9d48a4
commit 7ecd0e4a8d
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -181,7 +181,7 @@ final class MDErrorReporter {
}
// Append the contents of $_SESSION
if (session_status() == PHP_SESSION_ACTIVE) {
if (session_status() === PHP_SESSION_ACTIVE) {
$msg .= $this->_formulateDebugMailSection("The current content of \$_SESSION", $_SESSION);
}
else $msg .= "No active session";