From: cash Date: Thu, 17 Dec 2009 12:45:02 +0000 (+0000) Subject: fixed warning due to database query cache X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7e1b63792bc51cf6d313199512564a1750562088;p=lorea%2Felgg.git fixed warning due to database query cache git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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(); }