Use bigger slice in share provider

Probably won't make a big difference as it is unlikely a user has > 100
shares but this make sure we use the same code in spreed where the
change has a bigger impact.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-08-16 11:17:27 +02:00
parent a61331f456
commit a1011bad6c
No known key found for this signature in database
GPG key ID: C3AA6B3A5EFA7AC5

View file

@ -954,8 +954,8 @@ class DefaultShareProvider implements IShareProvider {
$start = 0;
while (true) {
$groups = array_slice($allGroups, $start, 100);
$start += 100;
$groups = array_slice($allGroups, $start, 1000);
$start += 1000;
if ($groups === []) {
break;