summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-19 11:08:12 -0400
committerjim-p <jimp@pfsense.org>2010-07-19 11:08:58 -0400
commit5709072a7e46165ae9d774c5c9c5818a89231d7e (patch)
tree9066170694d40dda6a48c35550a88d5e6559747f /usr
parentd9a6bd8f581eb5fbe094776c98f98caef23510db (diff)
downloadpfsense-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.php10
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();
OpenPOWER on IntegriCloud