Merge pull request #33558 from nextcloud/fix/use-bigger-slice-share-provider

Use bigger slice in share provider
pull/33522/head
Vincent Petry 2022-08-17 16:12:56 +07:00 committed by GitHub
commit 15dc060551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -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;