summaryrefslogtreecommitdiff
path: root/program/include/rcube_db.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-03-23 17:02:24 +0000
committersvncommit <devs@roundcube.net>2007-03-23 17:02:24 +0000
commit5181405715533cb74378b34e57bc577a976bea2d (patch)
tree58567dd945a183c4727ca535fe3f95911f900a81 /program/include/rcube_db.inc
parent3cf664939b98befe8e9f9a8e3fa8a7e9a85a5745 (diff)
close #1484280
Diffstat (limited to 'program/include/rcube_db.inc')
-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);