aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php4
1 files changed, 2 insertions, 2 deletions
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");