]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
Add check for valid session
[qtadmin.git] / lib / utils.inc.php
index ec109f82c6f63ef82434e451bdfdbb3b7b007329..6dd47605f242aa2052b56fb464156ef59d0afb27 100644 (file)
@@ -29,8 +29,6 @@ class Utils {
     public function __construct() {
         global $CFG;
 
     public function __construct() {
         global $CFG;
 
-        $this->log("Init Utils", 4);
-
         if (isset($CFG->log_level)) {
             $this->log_level = $CFG->log_level;
         } else {
         if (isset($CFG->log_level)) {
             $this->log_level = $CFG->log_level;
         } else {
@@ -43,6 +41,8 @@ class Utils {
             $this->log_level = 'syslog';
         }
 
             $this->log_level = 'syslog';
         }
 
+        $this->log("Init Utils", 4);
+
         $this->startSession();
 
         if (! isset($_SESSION['settings'])) {
         $this->startSession();
 
         if (! isset($_SESSION['settings'])) {
@@ -83,6 +83,7 @@ class Utils {
             case 'syslog':
                 syslog($priority,$msg);
                 break;
             case 'syslog':
                 syslog($priority,$msg);
                 break;
+        }
     }
 
     private function initSettings() {
     }
 
     private function initSettings() {
This page took 0.17231 seconds and 5 git commands to generate.