From e3f0e8bfa60bfc3c265bd5b9d260653b79e2903b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 29 Dec 2009 17:52:23 +0000 Subject: [PATCH] Fix: Remove warning --- htdocs/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index a70d716d71c..cbc6ebb3150 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -197,7 +197,7 @@ class Translate { // Enable cache of lang file in memory (faster but need more memory) // Speed gain: 40ms - Memory overusage: 200ko (Size of session cache file) - $enablelangcacheinmemory=$conf->global->MAIN_OPTIMIZE_SPEED; + $enablelangcacheinmemory=empty($conf->global->MAIN_OPTIMIZE_SPEED)?0:$conf->global->MAIN_OPTIMIZE_SPEED; //$enablelangcacheinmemory=true; if ($alt == 2 && $enablelangcacheinmemory)