Merge pull request #6490 from nextcloud/share_pagination_query
Improve sharing pagination
This commit is contained in:
commit
ca5c3f839a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue