From 9da61a01903a1595809394cafa1a5517c159bf7d Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 6 Jun 2015 00:15:07 +0200 Subject: [PATCH] Add check for valid session --- lib/utils.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 8cf730e..71f0071 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -43,12 +43,16 @@ class Utils { $this->log("Init Utils", 4); + $this->log("__construct[1]: user ".var_export($this->settings['user'], true), 3); $this->startSession(); + $this->log("__construct[2]: user ".var_export($this->settings['user'], true), 3); if (! isset($_SESSION['settings'])) { $this->initSettings(); } + $this->log("__construct[3]: user ".var_export($this->settings['user'], true), 3); $this->settings = $_SESSION['settings']; + $this->log("__construct[4]: user ".var_export($this->settings['user'], true), 3); if ($CFG->auth_method == 'HTTP_AUTH') { if (isset($this->server['PHP_AUTH_USER'])) { -- 2.39.2