From ca12f85c92c7f61d62c316483808608e78696d10 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 4 May 2018 08:11:49 -0400 Subject: [PATCH] Fix db error display --- include/dba.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {