From 38f3a3c0b320906005eb8399315caa4dd8ab419d Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 2 Jun 2009 11:54:38 +0000 Subject: Removed some error messages git-svn-id: https://code.elgg.org/elgg/trunk@3317 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine') diff --git a/engine/lib/database.php b/engine/lib/database.php index 4aa879920..f4ae22b7d 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -259,7 +259,7 @@ // Is cached? if ($DB_QUERY_CACHE) $cached_query = $DB_QUERY_CACHE[$query]; - if ($cached_query) { + if ((isset($cached_query)) && ($cached_query)) { if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) error_log ("$query results returned from cache"); @@ -309,7 +309,7 @@ // Is cached if ($DB_QUERY_CACHE) $cached_query = $DB_QUERY_CACHE[$query]; - if ($cached_query) { + if ((isset($cached_query)) && ($cached_query)) { if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) error_log ("$query results returned from cache"); -- cgit v1.2.3