Skip to content

Commit

Permalink
Merge pull request #33558 from nextcloud/fix/use-bigger-slice-share-p…
Browse files Browse the repository at this point in the history
…rovider

Use bigger slice in share provider
  • Loading branch information
PVince81 authored Aug 17, 2022
2 parents e32314e + a1011ba commit 15dc060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,8 @@ public function getSharedWith($userId, $shareType, $node, $limit, $offset) {

$start = 0;
while (true) {
$groups = array_slice($allGroups, $start, 100);
$start += 100;
$groups = array_slice($allGroups, $start, 1000);
$start += 1000;

if ($groups === []) {
break;
Expand Down

0 comments on commit 15dc060

Please sign in to comment.