aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-28 19:28:33 -0800
committerfriendica <info@friendica.com>2011-11-28 19:28:33 -0800
commit034038849cfa710f8b65bc5ab0121cc4865b8b28 (patch)
tree44e435ea879a27f024863ef6af1a81f25c78e8b9 /include/dba.php
parentf4e1135f7962ae06dc529b8d3b9c2f029baa3a73 (diff)
downloadvolse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.tar.gz
volse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.tar.bz2
volse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.zip
mysql error report fix (no mysqli), suggested friends for new members settings
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/dba.php b/include/dba.php
index 3fa615d90..b89cf5376 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -76,9 +76,11 @@ class dba {
$mesg = '';
- if($this->mysqli && $this->db->errno)
- logger('dba: ' . $this->db->error);
- else
+ if($this->mysqli) {
+ if($this->db->errno)
+ logger('dba: ' . $this->db->error);
+ }
+ elseif(mysql_errno($this->db))
logger('dba: ' . mysql_error($this->db));
if($result === false)