diff options
Diffstat (limited to 'include/dba.php')
-rw-r--r-- | include/dba.php | 8 |
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) |