diff options
author | Ermal <eri@pfsense.org> | 2011-07-27 20:31:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-27 20:31:30 +0000 |
commit | 9626710723f5495d1b9fcb0f902ac1d91f9df86b (patch) | |
tree | ae1a45621c3f4a48f042ead1c79bbc6526168c15 /usr/local | |
parent | 5d6bade495483d81dee13b429b95867cd87c2236 (diff) | |
download | pfsense-9626710723f5495d1b9fcb0f902ac1d91f9df86b.zip pfsense-9626710723f5495d1b9fcb0f902ac1d91f9df86b.tar.gz |
Correct whitespace and some problems in the just merged ldap auth sorce for racoon
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/vpn_ipsec_mobile.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php index f0df0b7..fe28963 100755 --- a/usr/local/www/vpn_ipsec_mobile.php +++ b/usr/local/www/vpn_ipsec_mobile.php @@ -356,18 +356,18 @@ function login_banner_change() { <?=gettext("Source"); ?>: <select name="user_source" class="formselect" id="user_source"> <option value="system" <?php if ($pconfig['user_source'] == 'system') echo "selected"; ?>><?=gettext("system"); ?></option> - <? - if (isset($config['system']['authserver'])) - { + <?php + if (is_array($config['system']['authserver'])) { foreach ($config['system']['authserver'] as $authcfg) { if ($authcfg['type'] == 'ldap') { $selected = ""; - if ($pconfig['user_source'] == $authcfg['name']) $selected = "selected"; - print '<option value="'.$authcfg['name'].'" '. $selected.'>'.$authcfg['name'].'</option>'; + if ($pconfig['user_source'] == $authcfg['name']) + $selected = "selected"; + echo "<option value='{$authcfg['name']}' {$selected} >{$authcfg['name']}</option>\n"; } } } - ?> + ?> </select> </td> </tr> |