From d106ff5086229714a42c811b4b1f75d75dffcaad Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 1 May 2017 21:38:37 +0000 Subject: [PATCH] Error reporting hadn't worked for the new functions --- include/dba.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dba.php b/include/dba.php index 924c31e05f..1ee2662150 100644 --- a/include/dba.php +++ b/include/dba.php @@ -520,7 +520,7 @@ class dba { } if (!$stmt->execute()) { - $errorInfo = self::$dbo->db->errorInfo(); + $errorInfo = $stmt->errorInfo(); self::$dbo->error = $errorInfo[2]; self::$dbo->errorno = $errorInfo[1]; $retval = false; @@ -532,8 +532,8 @@ class dba { $stmt = self::$dbo->db->stmt_init(); if (!$stmt->prepare($sql)) { - self::$dbo->error = self::$dbo->db->error; - self::$dbo->errorno = self::$dbo->db->errno; + self::$dbo->error = $stmt->error; + self::$dbo->errorno = $stmt->errno; $retval = false; break; }