summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-25 09:18:57 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-25 09:18:57 +0000
commitc9c64f7e2f19793a03d3252531a5b98e8ad13785 (patch)
tree4bc0155abf1dc79ef69a9071f9d8f26e78cc238b /roundcubemail/program/include/rcube_mdb2.php
parent8214100be489978ecf7595c8ad148dc32e38e342 (diff)
Fix return value of affected_rows()
git-svn-id: https://svn.roundcube.net/trunk@4693 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_mdb2.php')
-rw-r--r--roundcubemail/program/include/rcube_mdb2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php
index f58c32b17..1142f46c2 100644
--- a/roundcubemail/program/include/rcube_mdb2.php
+++ b/roundcubemail/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);