summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-19 14:16:38 -0400
committerjim-p <jimp@pfsense.org>2012-08-19 14:17:28 -0400
commit73815007a4bfa41d0e7225d59c450ec853024e29 (patch)
tree9b7fc300cb9e56406fecd0ac1fa793cd55c0cf95 /usr
parentbe9c20c7a18277c5c5b8d54fabcb1f5464472439 (diff)
downloadpfsense-73815007a4bfa41d0e7225d59c450ec853024e29.zip
pfsense-73815007a4bfa41d0e7225d59c450ec853024e29.tar.gz
Test for an array before using it like one.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_groupmanager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php
index 4bf1c25..0a8b712 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;?>>
OpenPOWER on IntegriCloud