mysql error report fix (no mysqli), suggested friends for new members settings

This commit is contained in:
friendica 2011-11-28 19:28:33 -08:00
parent f4e1135f79
commit 034038849c
5 changed files with 88 additions and 12 deletions

View file

@ -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)