summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-03-23 18:50:32 +0000
committersvncommit <devs@roundcube.net>2007-03-23 18:50:32 +0000
commit8451fa4eb65976669bcfd345024e912067308795 (patch)
treeaed74e42a9840ea354bfe4a6dca5c45698ada0fe /program
parentf388a8d37a0cd05df9f3fba4ec863d3818bb3d10 (diff)
close #1484280
Refixed
Diffstat (limited to 'program')
-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);
}