aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-02 01:59:11 -0700
committerfriendica <info@friendica.com>2012-09-02 01:59:11 -0700
commit38344798f23c12db2409fb91d5e2aaf6c492c6f5 (patch)
tree122174b9aa3f975c76998a3afc3101c961799309 /include/dba.php
parent4736fa5927b35ebd0b2fc337e9f4a3d1e1e0af0d (diff)
downloadvolse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.tar.gz
volse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.tar.bz2
volse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.zip
rev update
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php4
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"]) {