aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-02 11:54:38 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-02 11:54:38 +0000
commit38f3a3c0b320906005eb8399315caa4dd8ab419d (patch)
tree5a4fea6990de07c7c0fe9bf5bef7c16aca8a9080 /engine/lib
parent9bd19754081f5a2ddeb30bae7240ae8d6aa4edea (diff)
downloadelgg-38f3a3c0b320906005eb8399315caa4dd8ab419d.tar.gz
elgg-38f3a3c0b320906005eb8399315caa4dd8ab419d.tar.bz2
Removed some error messages
git-svn-id: https://code.elgg.org/elgg/trunk@3317 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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");