summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/templates/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/templates/settings.php')
-rw-r--r--apps/user_ldap/templates/settings.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index f44127594c7..d3c2c298904 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -14,7 +14,20 @@
<fieldset id="ldapSettings-1">
<p><label for="ldap_serverconfig_chooser"><?php p($l->t('Server configuration'));?></label>
<select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
- <?php print_unescaped($_['serverConfigurationOptions']); ?>
+ <?php if(count($_['serverConfigurationPrefixes']) == 0 ) {
+ ?>
+ <option value="" selected>1. Server</option>');
+ <?php
+ } else {
+ $i = 1;
+ $sel = ' selected';
+ foreach($_['serverConfigurationPrefixes'] as $prefix) {
+ ?>
+ <option value="<?php p($prefix); ?>"<?php p($sel); ?>><?php p($i++); ?>. Server</option>
+ <?php
+ }
+ }
+ ?>
<option value="NEW"><?php p($l->t('Add Server Configuration'));?></option>
</select>
<button id="ldap_action_delete_configuration"