diff --git a/include/dba.php b/include/dba.php index 7f98fc80..cb0c09f9 100644 --- a/include/dba.php +++ b/include/dba.php @@ -40,8 +40,8 @@ class dba if ($this->debug) { $mesg = ''; - if ($this->db->mysqli->errno) { - $debug_text .= $this->db->mysqli->error . EOL; + if ($this->db->errno) { + $debug_text .= $this->db->error . EOL; } if ($result === false) {