Skip to content

Commit

Permalink
Fix: error after initial install - with no gedcoms, there are no acti…
Browse files Browse the repository at this point in the history
…ve modules
  • Loading branch information
fisharebest committed Mar 5, 2011
1 parent 95bf194 commit c31648e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/WT/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c31648e

Please sign in to comment.