diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index f7666a40..195519b0 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -156,6 +156,7 @@ function check_module_conflicts($selected, $deps) { // returns an array with all available user module names // $scope = user, group, host, ... function getAvailableModules($scope) { + $return = array(); // get module names. $dir = opendir('../../lib/modules'); while ($entry = readdir($dir)) @@ -164,7 +165,7 @@ function getAvailableModules($scope) { if (call_user_func(array($entry, "can_manage"), $scope)) $return[] = $entry; } return $return; - } +} // $scope = user, group, host, ... function getProfileOptions($scope) { @@ -980,7 +981,7 @@ class accountContainer { function get_pdfEntries($acount_type) { $return = array(); for($i=0;$imodules[i])->get_pdfEntries($account_type); + $entries = $this->modules[i]->get_pdfEntries($account_type); while(list($key,$value) = each($entries)) { if(array_key_exists($key,$return)) { array_push($return[$key],$value);