Merge pull request #25160 from owncloud/fix-oracle-endless-loop-stable9

Do not recurse link share fetching
This commit is contained in:
Vincent Petry 2016-06-17 15:24:47 +02:00 committed by GitHub
commit a3111e8589
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