diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-08 16:12:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-13 13:31:28 +0100 |
commit | 3f8c998afe59077978bf7aa3e2c15e6306a1dbdd (patch) | |
tree | 87f87a612188d0c3e50a6fd17e0a93de47ed12b1 /lib | |
parent | 6509220f824e906a5e7ffde27b4b334872852dce (diff) | |
download | nextcloud-server-3f8c998afe59077978bf7aa3e2c15e6306a1dbdd.tar.gz nextcloud-server-3f8c998afe59077978bf7aa3e2c15e6306a1dbdd.zip |
Do not recurse link share fetching
* Might fix an issue on oracle
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 047d9d3e8f5..95662dc0b60 100644 --- a/lib/private/share20/manager.php +++ b/lib/private/share20/manager.php @@ -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 |