Remi Collet
2012-10-29 ccbf0da6eb99d1fdd8edf7114fc6e1a2c1071de0
fix call to MDB2::isError for MDB2 2.5.0b4
1 files modified
4 ■■■■ changed files
program/include/rcube_mdb2.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_mdb2.php
@@ -285,7 +285,7 @@
        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 @@
        $id = $this->db_handle->lastInsertID($table);
        return $this->db_handle->isError($id) ? null : $id;
        return MDB2::isError($id) ? null : $id;
    }