Fix db error display

This commit is contained in:
Hypolite Petovan 2018-05-04 08:11:49 -04:00
parent 64d70c4fc3
commit ca12f85c92
1 changed files with 2 additions and 2 deletions

View File

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