]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
modified: view/theme/smoothly/style.css
[friendica.git] / include / dba.php
index 879d7e67e12d33c1c997faa6edcd4a57797dba20..8d224b570f44299c431f087392cc5e735787ef27 100644 (file)
@@ -78,7 +78,7 @@ class dba {
 
                $this->error = '';
 
-               if ($a->config["system"]["db_log"] != "")
+               if(x($a->config,'system') && x($a->config['system'],'db_log'))
                        $stamp1 = microtime(true);
 
                if($this->mysqli)
@@ -86,7 +86,7 @@ class dba {
                else
                        $result = @mysql_query($sql,$this->db);
 
-               if ($a->config["system"]["db_log"] != "") {
+               if(x($a->config,'system') && x($a->config['system'],'db_log')) {
                        $stamp2 = microtime(true);
                        $duration = round($stamp2-$stamp1, 3);
                        if ($duration > $a->config["system"]["db_loglimit"]) {