From 8aba48a1d2205c128ee4a7f077fec5a9d4abc756 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Tue, 24 Aug 2021 19:09:22 +0300 Subject: [PATCH] Remove obsolete code from init --- src/mibew/libs/init.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mibew/libs/init.php b/src/mibew/libs/init.php index 4bfb66ab..46432952 100644 --- a/src/mibew/libs/init.php +++ b/src/mibew/libs/init.php @@ -62,14 +62,8 @@ if ($tmp_request->isSecure()) { // Remove temporary request to keep global scope clean. unset($tmp_request); -if (version_compare(phpversion(), '5.4.0', '<')) { - if (session_id() == '') { - session_start(); - } -} else { - if (session_status() == PHP_SESSION_NONE) { - session_start(); - } +if (session_status() == PHP_SESSION_NONE) { + session_start(); } if (function_exists("date_default_timezone_set")) {