Merge pull request #6490 from nextcloud/share_pagination_query

Improve sharing pagination
This commit is contained in:
Roeland Jago Douma 2017-09-18 14:34:15 +02:00 committed by GitHub
commit ca5c3f839a
1 changed files with 5 additions and 0 deletions

View File

@ -1053,6 +1053,11 @@ class Manager implements IManager {
}
}
// If we did not fetch more shares than the limit then there are no more shares
if (count($shares) < $limit) {
break;
}
if (count($shares2) === $limit) {
break;
}