]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed warning due to database query cache
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 17 Dec 2009 12:45:02 +0000 (12:45 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 17 Dec 2009 12:45:02 +0000 (12:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/database.php

index bffc2fc86eeaeaf3d490f1ccb417832ac6267f0e..5819983065f0520e0a44b88bf5e478675d47e8e8 100644 (file)
@@ -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();
        }