diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-29 01:38:37 -0700 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-29 01:38:37 -0700 |
commit | 76a48a8490b37ea47cc169cce3aa030eafa088e8 (patch) | |
tree | 00e475bcf49f78b7b7af8ac5c3ccc646abde98bf /program | |
parent | fd49626c2b34e03b84aff8aba9b0993b4b1bedf9 (diff) | |
parent | 96f8436d77af05cf3c2d4f87970868221ddc6891 (diff) |
Merge pull request #40 from remicollet/track-1488779
fix call to MDB2::isError for MDB2 2.5.0b4
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_mdb2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 3d8891d2f..876ee028a 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -288,7 +288,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; @@ -369,7 +369,7 @@ class rcube_mdb2 $id = $this->db_handle->lastInsertID($table); - return $this->db_handle->isError($id) ? null : $id; + return MDB2::isError($id) ? null : $id; } |