fixed syntax error

This commit is contained in:
Roland Gruber 2004-05-23 15:51:21 +00:00
parent 2108027bee
commit dad40a8a14
1 changed files with 3 additions and 2 deletions

View File

@ -156,6 +156,7 @@ function check_module_conflicts($selected, $deps) {
// returns an array with all available user module names // returns an array with all available user module names
// $scope = user, group, host, ... // $scope = user, group, host, ...
function getAvailableModules($scope) { function getAvailableModules($scope) {
$return = array();
// get module names. // get module names.
$dir = opendir('../../lib/modules'); $dir = opendir('../../lib/modules');
while ($entry = readdir($dir)) while ($entry = readdir($dir))
@ -980,7 +981,7 @@ class accountContainer {
function get_pdfEntries($acount_type) { function get_pdfEntries($acount_type) {
$return = array(); $return = array();
for($i=0;$i<count($modules);$i++) { for($i=0;$i<count($modules);$i++) {
$entries = ($this->modules[i])->get_pdfEntries($account_type); $entries = $this->modules[i]->get_pdfEntries($account_type);
while(list($key,$value) = each($entries)) { while(list($key,$value) = each($entries)) {
if(array_key_exists($key,$return)) { if(array_key_exists($key,$return)) {
array_push($return[$key],$value); array_push($return[$key],$value);