Aleksander Machniak
2012-08-08 15442512d249380851aaa7878a541559ee4f6782
(Again) return error message from is_error()
1 files modified
6 ■■■■ changed files
program/include/rcube_db.php 6 ●●●● patch | view | raw | blame | history
program/include/rcube_db.php
@@ -268,15 +268,15 @@
     *
     * @param int $res_id Optional query result identifier
     *
     * @return boolean True on error, False otherwise
     * @return string Error message
     */
    public function is_error($res_id = null)
    {
        if ($res_id !== null) {
            return $this->_get_result($res_id) === false;
            return $this->_get_result($res_id) === false ? $this->db_error_msg : null;
        }
        return $this->db_error;
        return $this->db_error ? $this->db_error_msg : null;
    }
    /**