Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-08 18:12:17 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-06-17 12:09:27 +0300
commit2d7bbf4a63722ea4be7517356301859c9fc915f3 (patch)
tree4c1309f003c353525a2815ccd7c99803f65a5e3a /lib
parentb5d3e877f1554a261da9d5a1fe0381f30607815b (diff)
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 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