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