aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-08 16:12:17 +0100
committerLukas Reschke <lukas@owncloud.com>2016-06-20 17:38:59 +0200
commit07436d089bff1bafae632e57b2847c7e99c550bd (patch)
tree2a214879b8e4ddc27fba25b9baee8859f71671c8 /lib
parent280c288bc0936dd6c512c8b47f378303c6e15bcd (diff)
downloadnextcloud-server-07436d089bff1bafae632e57b2847c7e99c550bd.tar.gz
nextcloud-server-07436d089bff1bafae632e57b2847c7e99c550bd.zip
Do not recurse link share fetching
* Might fix an issue on oracle
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/manager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 06d4029bec9..35a019b2334 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -907,6 +907,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