From 7ecd0e4a8d028b142ad9ef04c805ed49278707e3 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 30 Jan 2021 21:01:05 +0100 Subject: [PATCH] Use static typed comparison for checking if session has been started --- MDErrorReporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MDErrorReporter.php b/MDErrorReporter.php index 8ed6a5f..f4d7559 100644 --- a/MDErrorReporter.php +++ b/MDErrorReporter.php @@ -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";