fixed problem in profile editor if no group name was set
This commit is contained in:
parent
792cc00a1d
commit
bf20b6e895
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue