diff options
author | jim-p <jimp@pfsense.org> | 2010-07-19 11:08:12 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-07-19 11:08:58 -0400 |
commit | 5709072a7e46165ae9d774c5c9c5818a89231d7e (patch) | |
tree | 9066170694d40dda6a48c35550a88d5e6559747f /usr | |
parent | d9a6bd8f581eb5fbe094776c98f98caef23510db (diff) | |
download | pfsense-5709072a7e46165ae9d774c5c9c5818a89231d7e.zip pfsense-5709072a7e46165ae9d774c5c9c5818a89231d7e.tar.gz |
Only perform this check if the group being created actually has members.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_groupmanager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 12d2e41..8b5c3c3 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -152,10 +152,12 @@ if ($_POST) { local_group_set($group); /* Refresh users in this group since their privileges may have changed. */ - $a_user = &$config['system']['user']; - foreach ($a_user as & $user) { - if (in_array($user['uid'], $group['member'])) - local_user_set($user); + if (is_array($group['member'])) { + $a_user = &$config['system']['user']; + foreach ($a_user as & $user) { + if (in_array($user['uid'], $group['member'])) + local_user_set($user); + } } write_config(); |