summaryrefslogtreecommitdiff
path: root/program/include/rcube_db.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_db.inc')
-rwxr-xr-xprogram/include/rcube_db.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc
index 0eb191a8a..6f362a31d 100755
--- a/program/include/rcube_db.inc
+++ b/program/include/rcube_db.inc
@@ -360,12 +360,14 @@ class rcube_db
*/
function _fetch_row($result, $mode)
{
- if (!$result || !is_object($result) || DB::isError($result))
+ if (!$result || DB::isError($result))
{
raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
'message' => $this->db_link->getMessage()), TRUE, FALSE);
return FALSE;
}
+ elseif (!is_object($result))
+ return FALSE;
return $result->fetchRow($mode);
}