From 7e1b63792bc51cf6d313199512564a1750562088 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 17 Dec 2009 12:45:02 +0000 Subject: fixed warning due to database query cache git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') 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(); } -- cgit v1.2.3