From 73d6b2a6b07cdf43c3d2bf6f835ad1af7f7bd401 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 25 Apr 2011 09:18:57 +0000 Subject: Fix return value of affected_rows() --- program/include/rcube_mdb2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index f58c32b17..1142f46c2 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -315,7 +315,7 @@ class rcube_mdb2 if (!$this->db_connected) return false; - return (int) $this->_get_result($res_id); + return $this->_get_result($res_id); } @@ -664,6 +664,7 @@ class rcube_mdb2 'message' => $res->getMessage() . " Query: " . substr(preg_replace('/[\r\n]+\s*/', ' ', $res->userinfo), 0, 512)), true, false); + $res = false; } $res_id = sizeof($this->a_query_results); -- cgit v1.2.3