fixed problem in profile editor if no group name was set

This commit is contained in:
Roland Gruber 2011-12-22 19:48:34 +00:00
parent 792cc00a1d
commit bf20b6e895
1 changed files with 7 additions and 5 deletions

View File

@ -643,6 +643,7 @@ class freeRadius extends baseModule {
$messages = parent::check_profileOptions($options); $messages = parent::check_profileOptions($options);
// group names // group names
if (!$this->isBooleanConfigOptionSet('freeRadius_hideRadiusGroupName')) { if (!$this->isBooleanConfigOptionSet('freeRadius_hideRadiusGroupName')) {
if (isset($options['freeRadius_radiusGroupName'][0]) && ($options['freeRadius_radiusGroupName'][0] != '')) {
$list = preg_split('/;[ ]*/', $options['freeRadius_radiusGroupName'][0]); $list = preg_split('/;[ ]*/', $options['freeRadius_radiusGroupName'][0]);
for ($i = 0; $i < sizeof($list); $i++) { for ($i = 0; $i < sizeof($list); $i++) {
if (!get_preg($list[$i], 'groupname')) { if (!get_preg($list[$i], 'groupname')) {
@ -651,6 +652,7 @@ class freeRadius extends baseModule {
} }
} }
} }
}
return $messages; return $messages;
} }