aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-17 12:45:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-17 12:45:02 +0000
commit7e1b63792bc51cf6d313199512564a1750562088 (patch)
tree454b6f3dc810d3075ade1f8e7e64a20a70ecc32b /engine/lib/database.php
parent85dd010eb40fd46b52f2e265fe7e5bdc39aa7d7b (diff)
downloadelgg-7e1b63792bc51cf6d313199512564a1750562088.tar.gz
elgg-7e1b63792bc51cf6d313199512564a1750562088.tar.bz2
fixed warning due to database query cache
git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index bffc2fc86..581998306 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -62,7 +62,7 @@ function establish_db_link($dblinkname = "readwrite") {
mysql_query("SET NAMES utf8");
// Set up cache
- if ((!$DB_QUERY_CACHE) && (!$CONFIG->db_disable_query_cache)) {
+ if ((!$DB_QUERY_CACHE) && isset($CONFIG->db_disable_query_cache) && (!$CONFIG->db_disable_query_cache)) {
$DB_QUERY_CACHE = new ElggStaticVariableCache('db_query_cache'); //array();
//$DB_QUERY_CACHE = select_default_memcache('db_query_cache'); //array();
}