From 58bc7e9278a498bcf0c843c181a4fc8dad9b7a2f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 16 Nov 2016 15:51:14 +0100 Subject: [PATCH] Fixed problems with sessions. --- pandora_console/include/config_process.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 2ae53a42ab..4b98303fe1 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -112,6 +112,9 @@ require_once ($ownDir. 'functions_config.php'); // We need a timezone BEFORE calling config_process_config. // If not we will get ugly warnings. Set Europe/Madrid by default // Later will be replaced by the good one. +if (!isset($config["homeurl_static"])) { + $config["homeurl_static"] = $config["homeurl"]; +} date_default_timezone_set("Europe/Madrid"); @@ -124,11 +127,6 @@ if(session_id() == '') { $resultado = session_start(); } - -if (!isset($config["homeurl_static"])) { - $config["homeurl_static"] = $config["homeurl"]; -} - // Set a the system timezone default if ((!isset($config["timezone"])) OR ($config["timezone"] == "")) { $config["timezone"] = "Europe/Berlin";