Do not recurse link share fetching

* Might fix an issue on oracle
This commit is contained in:
Roeland Jago Douma 2016-03-08 16:12:17 +01:00 committed by Thomas Müller
parent b5d3e877f1
commit 2d7bbf4a63
No known key found for this signature in database
GPG Key ID: A943788A3BBEC44C
1 changed files with 5 additions and 0 deletions

View File

@ -906,6 +906,11 @@ class Manager implements IManager {
break;
}
// If there was no limit on the select we are done
if ($limit === -1) {
break;
}
$offset += $added;
// Fetch again $limit shares