diff options
author | jim-p <jimp@pfsense.org> | 2012-11-27 08:29:00 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-11-27 08:29:00 -0500 |
commit | 94d1cd834d19567d8fe64464bd2f12bcea1fb4f4 (patch) | |
tree | 5512a5c53b4673d02895537b4c4a5095b8a52e7c | |
parent | 9f9df4ec6fedaab0b27a9ef1147ce5b65c708336 (diff) | |
download | pfsense-94d1cd834d19567d8fe64464bd2f12bcea1fb4f4.zip pfsense-94d1cd834d19567d8fe64464bd2f12bcea1fb4f4.tar.gz |
Safety belt checks to fix a PHP error that for whatever reason only appeared in Chrome.
-rw-r--r-- | usr/local/www/system_groupmanager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 4bf1c25..def20c7 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -293,7 +293,7 @@ function presubmit() { <select size="10" style="width: 75%" name="notmembers[]" class="formselect" id="notmembers" onChange="clear_selected('members')" multiple> <?php foreach ($config['system']['user'] as $user): - if (in_array($user['uid'],$pconfig['members'])) + if (is_array($pconfig['members']) && in_array($user['uid'],$pconfig['members'])) continue; ?> <option value="<?=$user['uid'];?>" <?=$selected;?>> @@ -319,7 +319,7 @@ function presubmit() { <select size="10" style="width: 75%" name="members[]" class="formselect" id="members" onChange="clear_selected('notmembers')" multiple> <?php foreach ($config['system']['user'] as $user): - if (!in_array($user['uid'],$pconfig['members'])) + if (!(is_array($pconfig['members']) && in_array($user['uid'],$pconfig['members']))) continue; ?> <option value="<?=$user['uid'];?>"> |