From a01b6bdca1fae4b4e52239d824e82590b4e1e11b Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Mon, 2 Jan 2012 17:15:04 +0000 Subject: [PATCH] // Performance fix --- classes/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/AdminController.php b/classes/AdminController.php index db0b3d569..7aaaaae57 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -165,7 +165,7 @@ class AdminControllerCore extends Controller public static $cache_lang = array(); /** @var array list the the tab using under a module */ - public static $tab_module_list = array(); + public static $tab_module_list; /** @var array required_fields to display in the Required Fields form */ public $required_fields = array(); @@ -1682,7 +1682,7 @@ class AdminControllerCore extends Controller */ public static function initModuleCacheTab() { - if (!self::$tab_module_list) + if (!isset(self::$tab_module_list)) self::$tab_module_list = Tab::getModuleTabList(); }