added Pavel's patch

This commit is contained in:
Roland Gruber 2011-03-22 17:40:40 +00:00
parent d35db4062f
commit 4f46c325a0
1 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2010 Roland Gruber Copyright (C) 2003 - 2011 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -335,6 +335,7 @@ class LAMConfig {
for ($s = 0; $s < sizeof($scopes); $s++) { for ($s = 0; $s < sizeof($scopes); $s++) {
$scope = $scopes[$s]; $scope = $scopes[$s];
$moduleVar = "modules_" . $scope; $moduleVar = "modules_" . $scope;
if (isset($this->typeSettings[$moduleVar])){
$modules = explode(",", $this->typeSettings[$moduleVar]); $modules = explode(",", $this->typeSettings[$moduleVar]);
$available = getAvailableModules($scope); $available = getAvailableModules($scope);
// only return available modules // only return available modules
@ -344,6 +345,7 @@ class LAMConfig {
} }
$this->$moduleVar = implode(",", $ret); $this->$moduleVar = implode(",", $ret);
} }
}
return true; return true;
} }