Remove obsolete code from init

This commit is contained in:
Fedor A. Fetisov 2021-08-24 19:09:22 +03:00
parent 423ef8d36f
commit 8aba48a1d2

View File

@ -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() == '') {
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
} else {
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
}
if (function_exists("date_default_timezone_set")) {