Merge pull request #6490 from nextcloud/share_pagination_query

Improve sharing pagination
pull/6558/head
Roeland Jago Douma 2017-09-18 14:34:15 +07:00 committed by GitHub
commit ca5c3f839a
1 changed files with 5 additions and 0 deletions

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