diff options
Diffstat (limited to 'include/dba.php')
-rw-r--r-- | include/dba.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dba.php b/include/dba.php index 879d7e67e..8d224b570 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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"]) { |