mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
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:
parent
a61331f456
commit
a1011bad6c
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue