aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/templates/part.wizard-server.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/templates/part.wizard-server.php')
-rw-r--r--apps/user_ldap/templates/part.wizard-server.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/user_ldap/templates/part.wizard-server.php b/apps/user_ldap/templates/part.wizard-server.php
index 9803fb3cd3c..5b607f7be86 100644
--- a/apps/user_ldap/templates/part.wizard-server.php
+++ b/apps/user_ldap/templates/part.wizard-server.php
@@ -1,18 +1,13 @@
<fieldset id="ldapWizard1">
<p>
<select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
- <?php if(count($_['serverConfigurationPrefixes']) === 0 ) {
+ <?php
+ $i = 1;
+ $sel = ' selected';
+ foreach($_['serverConfigurationPrefixes'] as $prefix) {
?>
- <option value="" selected><?php p($l->t('1. Server'));?></option>');
+ <option value="<?php p($prefix); ?>"<?php p($sel); $sel = ''; ?>><?php p($l->t('%s. Server:', array($i++)));?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
<?php
- } else {
- $i = 1;
- $sel = ' selected';
- foreach($_['serverConfigurationPrefixes'] as $prefix) {
- ?>
- <option value="<?php p($prefix); ?>"<?php p($sel); $sel = ''; ?>><?php p($l->t('%s. Server:', array($i++)));?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
- <?php
- }
}
?>
</select>