fix(ldap): Fix copying and creating LDAP configuration

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/55576/head
Côme Chilliet 7 months ago
parent 678a8a75ad
commit 723a3f0b96
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      apps/user_ldap/lib/Helper.php

@ -109,7 +109,7 @@ class Helper {
$prefix = 's01';
} else {
sort($prefixes);
$lastKey = array_pop($prefixes);
$lastKey = end($prefixes);
$lastNumber = (int)str_replace('s', '', $lastKey);
$prefix = 's' . str_pad((string)($lastNumber + 1), 2, '0', STR_PAD_LEFT);
}

Loading…
Cancel
Save