diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 20:12:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 20:12:24 +0000 |
commit | 0996dada17856ce1f23732a700b26153d7364b78 (patch) | |
tree | 155be477d6351dc3afcfd0e862e8eab8161d2649 /usr/local | |
parent | 0b5ed732ed814a451bc1e88ca233b44e69febb71 (diff) | |
download | pfsense-0996dada17856ce1f23732a700b26153d7364b78.zip pfsense-0996dada17856ce1f23732a700b26153d7364b78.tar.gz |
* Do not iterate item if it is not an array
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_usermanager_settings_ldapacpicker.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/local/www/system_usermanager_settings_ldapacpicker.php b/usr/local/www/system_usermanager_settings_ldapacpicker.php index 28f8cb1..6a280b5 100644 --- a/usr/local/www/system_usermanager_settings_ldapacpicker.php +++ b/usr/local/www/system_usermanager_settings_ldapacpicker.php @@ -89,12 +89,14 @@ if($_POST) { echo "Sorry, we could not connect to the LDAP server. Please try later."; exit; } - foreach($ous as $ou) { - if(in_array($ou, $pconfig['ldapauthcontainers'])) - $CHECKED=" CHECKED"; - else - $CHECKED=""; - echo " <tr><td><input type='checkbox' value='{$ou}' name='ou[]'{$CHECKED}> {$ou}<br/></td></tr>\n"; + if(is_array($ous)) { + foreach($ous as $ou) { + if(in_array($ou, $pconfig['ldapauthcontainers'])) + $CHECKED=" CHECKED"; + else + $CHECKED=""; + echo " <tr><td><input type='checkbox' value='{$ou}' name='ou[]'{$CHECKED}> {$ou}<br/></td></tr>\n"; + } } ?> </table> |