From 519a15b5c75c25ccdf6e264a724a21b58e0991ae Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Fri, 5 Jun 2015 23:58:43 +0200 Subject: [PATCH] Add check for valid session --- lib/utils.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.inc.php b/lib/utils.inc.php index da1cdfb..6dd4760 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -29,8 +29,6 @@ class Utils { public function __construct() { global $CFG; - $this->log("Init Utils", 4); - if (isset($CFG->log_level)) { $this->log_level = $CFG->log_level; } else { @@ -43,6 +41,8 @@ class Utils { $this->log_level = 'syslog'; } + $this->log("Init Utils", 4); + $this->startSession(); if (! isset($_SESSION['settings'])) { -- 2.39.2