From dad40a8a14efc434fade47a9c9b5659a3898a3bb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 23 May 2004 15:51:21 +0000 Subject: [PATCH] fixed syntax error --- lam/lib/modules.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);