Merge branch 'patch-1' of https://github.com/nav666/mibew into nav666-patch-1

This commit is contained in:
Fedor A. Fetisov 2016-08-08 18:40:57 +03:00
commit 788a18f7f1

View File

@ -59,8 +59,18 @@ if ($tmp_request->isSecure()) {
// Remove temporary request to keep global scope clean. // Remove temporary request to keep global scope clean.
unset($tmp_request); unset($tmp_request);
// Initialize user session if (version_compare(phpversion(), '5.4.0', '<')) {
session_start(); if(session_id() == '') {
session_start();
}
}
else
{
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
}
if (function_exists("date_default_timezone_set")) { if (function_exists("date_default_timezone_set")) {
$timezone = !empty($configs['timezone']) $timezone = !empty($configs['timezone'])