summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/settings.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:30:24 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:30:24 +0100
commita8ac4bdf79b65239c6aeef4e6d0d642bedefc9c3 (patch)
tree2910d5d0ef7e9b91276552f143b8feb8f7ac8840 /apps/user_ldap/settings.php
parent3e99f12120dde810e3976b270666751b52c98959 (diff)
downloadnextcloud-server-a8ac4bdf79b65239c6aeef4e6d0d642bedefc9c3.tar.gz
nextcloud-server-a8ac4bdf79b65239c6aeef4e6d0d642bedefc9c3.zip
LDAP: Always preset configuration prefix when no configuratin is stored or all remaining ones are deleted
Diffstat (limited to 'apps/user_ldap/settings.php')
-rw-r--r--apps/user_ldap/settings.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php
index 5b679683f27..d5d2f648b38 100644
--- a/apps/user_ldap/settings.php
+++ b/apps/user_ldap/settings.php
@@ -49,6 +49,9 @@ foreach($prefixes as $prefix) {
$scoHtml .= '<option value="'.$prefix.'"'.$sel.'>'.$i++.'. Server</option>';
$sel = '';
}
+if(count($prefixes) == 0) {
+ $scoHtml .= '<option value="" selected>1. Server</option>';
+}
$tmpl->assign('serverConfigurationOptions', $scoHtml, false);
// assign default values