summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-25 09:18:57 +0000
committerthomascube <thomas@roundcube.net>2011-04-25 09:18:57 +0000
commit73d6b2a6b07cdf43c3d2bf6f835ad1af7f7bd401 (patch)
tree6e52ff4df815f746b090035c7c647d766a2b6307 /program/include
parent80809d6a9de193e69aae126a8714a3d53ba0b976 (diff)
Fix return value of affected_rows()
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_mdb2.php3
1 files changed, 2 insertions, 1 deletions
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);