From 2f26dbd26b70fcc31a76991a067651ab0ef0191e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Nov 2010 20:59:06 +0000 Subject: [PATCH] Fix: Do not try to use memcache module if setup not complete --- htdocs/core/class/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 3e932f84be7..b263a35a75d 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -198,7 +198,7 @@ class Translate { // Enable cache of lang file in memory (not by default) $usecachekey=''; // Using a memcached server - if (! empty($conf->memcached->enabled)) + if (! empty($conf->memcached->enabled) && ! empty($conf->global->MEMCACHED_SERVER)) { $usecachekey=$newdomain.'_'.$langofdir; }