From 38344798f23c12db2409fb91d5e2aaf6c492c6f5 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 2 Sep 2012 01:59:11 -0700 Subject: rev update --- include/dba.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/dba.php') 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"]) { -- cgit v1.2.3