mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
Merge pull request #55515 from nextcloud/backport/55475/stable32
[stable32] fix(user_ldap): Fix configuration creation and copy
This commit is contained in:
commit
274cef169d
1 changed files with 1 additions and 5 deletions
|
|
@ -15,11 +15,7 @@ use OCP\Server;
|
|||
\OC_JSON::callCheck();
|
||||
|
||||
$helper = Server::get(Helper::class);
|
||||
$serverConnections = $helper->getServerConfigurationPrefixes();
|
||||
sort($serverConnections);
|
||||
$lk = array_pop($serverConnections);
|
||||
$ln = (int)str_replace('s', '', $lk);
|
||||
$nk = 's' . str_pad((string)($ln + 1), 2, '0', STR_PAD_LEFT);
|
||||
$nk = $helper->getNextServerConfigurationPrefix();
|
||||
|
||||
$resultData = ['configPrefix' => $nk];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue