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
parent 6509220f82
commit 3f8c998afe
1 changed files with 5 additions and 0 deletions

View File

@ -881,6 +881,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