From c31648ed7da8d44cfe2730f38349fe10ada67c06 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Sat, 5 Mar 2011 14:06:02 +0000 Subject: [PATCH] Fix: error after initial install - with no gedcoms, there are no active modules --- library/WT/Module.php | 1 + 1 file changed, 1 insertion(+) 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';