diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-17 16:24:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 16:24:47 +0300 |
commit | a3111e8589346739cfa83607f6001341c76f5139 (patch) | |
tree | 80e7532985f110440390c349abad3c25afc2a80c /lib | |
parent | 7aa825f7dce21791f17dbfe7a516f9958d06102e (diff) | |
parent | 2d7bbf4a63722ea4be7517356301859c9fc915f3 (diff) |
Merge pull request #25160 from owncloud/fix-oracle-endless-loop-stable9
Do not recurse link share fetching
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share20/manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php index 9e04d57b289..7a48de6a11c 100644 --- a/lib/private/share20/manager.php +++ b/lib/private/share20/manager.php @@ -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 |