Skip to content

Commit 818f54d

Browse files
authored
Merge pull request #55576 from nextcloud/fix/ldap-configuration-prefix-list
fix(ldap): Fix copying and creating LDAP configuration
2 parents cb1a6f7 + 723a3f0 commit 818f54d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/user_ldap/lib/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getNextServerConfigurationPrefix(): string {
109109
$prefix = 's01';
110110
} else {
111111
sort($prefixes);
112-
$lastKey = array_pop($prefixes);
112+
$lastKey = end($prefixes);
113113
$lastNumber = (int)str_replace('s', '', $lastKey);
114114
$prefix = 's' . str_pad((string)($lastNumber + 1), 2, '0', STR_PAD_LEFT);
115115
}

0 commit comments

Comments
 (0)