From 28038c24ece93d038d659ec03792c9c2e04a3fb2 Mon Sep 17 00:00:00 2001 From: ngleader Date: Wed, 29 Sep 2010 06:10:31 +0000 Subject: [PATCH] #19162037 fixed Module extend git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7738 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/module/module.model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/module/module.model.php b/modules/module/module.model.php index 9f76c73b5..2dfbf258b 100644 --- a/modules/module/module.model.php +++ b/modules/module/module.model.php @@ -328,11 +328,12 @@ $str = sprintf($str, join(',',$arr)); FileHandler::writeFile($cache_file, $str); + } + + if(file_exists($cache_file)) { $GLOBALS['__MODULE_EXTEND__'] = include($cache_file); - } else { - $GLOBALS['__MODULE_EXTEND__'] = array(); } }