summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-10-29 09:22:33 +0100
committerAleksander Machniak <alec@alec.pl>2012-10-29 09:46:01 +0100
commitccbf0da6eb99d1fdd8edf7114fc6e1a2c1071de0 (patch)
tree5fe6d0f46e9a93ab6462bd73db289688ee5c9393 /program/include
parentb39e8e4174e5bb7abb89f7a645b6b106b7ec95f2 (diff)
fix call to MDB2::isError for MDB2 2.5.0b4
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_mdb2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index 67785bfcb..9f56118d5 100644
--- a/program/include/rcube_mdb2.php
+++ b/program/include/rcube_mdb2.php
@@ -285,7 +285,7 @@ class rcube_mdb2
else {
$params = (array)$params;
$q = $this->db_handle->prepare($query, null, $mode=='w' ? MDB2_PREPARE_MANIP : null);
- if ($this->db_handle->isError($q)) {
+ if (MDB2::isError($q)) {
$this->db_error = true;
$this->db_error_msg = $q->userinfo;
@@ -366,7 +366,7 @@ class rcube_mdb2
$id = $this->db_handle->lastInsertID($table);
- return $this->db_handle->isError($id) ? null : $id;
+ return MDB2::isError($id) ? null : $id;
}