extra check for list of modules

This commit is contained in:
Roland Gruber 2013-02-12 19:40:21 +00:00
parent 9a2908fd56
commit 1e54f8f753
1 changed files with 8 additions and 1 deletions

View File

@ -977,7 +977,14 @@ class LAMConfig {
*/
public function get_AccountModules($scope) {
if (isset($this->typeSettings["modules_" . $scope])) {
return explode(",", $this->typeSettings["modules_" . $scope]);
$modulesTmp = explode(",", $this->typeSettings["modules_" . $scope]);
$modules = array();
foreach ($modulesTmp as $mod) {
if (trim($mod) != '') {
$modules[] = $mod;
}
}
return $modules;
}
else {
return array();