diff --git a/library/WT/Module.php b/library/WT/Module.php index fc94d657a6c..ff7caab8700 100644 --- a/library/WT/Module.php +++ b/library/WT/Module.php @@ -122,6 +122,7 @@ static public function getActiveModules($sort=false) { $module_names=WT_DB::prepare( "SELECT module_name FROM `##module` WHERE status='enabled'" )->fetchOneColumn(); + $modules=array(); foreach ($module_names as $module_name) { if (file_exists(WT_ROOT.WT_MODULES_DIR.$module_name.'/module.php')) { require_once WT_ROOT.WT_MODULES_DIR.$module_name.'/module.php';