From 423807d32a0331d795a130fef1dbc5b924f4d33f Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Mon, 20 Apr 2026 11:59:13 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09144=20-=20Put=20back=20Session::IsIniti?= =?UTF-8?q?alized()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Application/Helper/Session.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sources/Application/Helper/Session.php b/sources/Application/Helper/Session.php index c19f554632..ae800cf22b 100644 --- a/sources/Application/Helper/Session.php +++ b/sources/Application/Helper/Session.php @@ -29,7 +29,7 @@ class Session return; } - if (session_status() === PHP_SESSION_ACTIVE || headers_sent()) { + if (self::IsInitialized()) { // Session already started self::$iSessionId = session_id(); return; @@ -193,4 +193,9 @@ class Session { return print_r($_SESSION, true); } + + public static function IsInitialized(): bool + { + return session_status() === PHP_SESSION_ACTIVE || headers_sent(); + } }