aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-10 10:04:52 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-10 10:04:52 +0200
commit307f1626e8ef86b1d4a04502c317e60066f92dd2 (patch)
tree68417fee0f81374dff1c70baec86b124ce2b5c33 /lib/files
parentb237d0379162b52269a6ea8292165d448d075f46 (diff)
downloadnextcloud-server-307f1626e8ef86b1d4a04502c317e60066f92dd2.tar.gz
nextcloud-server-307f1626e8ef86b1d4a04502c317e60066f92dd2.zip
convert LIMIT to parameter
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/legacy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php
index b8e2548639b..ab8ae6dfadd 100644
--- a/lib/files/cache/legacy.php
+++ b/lib/files/cache/legacy.php
@@ -45,7 +45,7 @@ class Legacy {
return $this->cacheHasItems;
}
try {
- $query = \OC_DB::prepare('SELECT `id` FROM `*PREFIX*fscache` WHERE `user` = ? LIMIT 1');
+ $query = \OC_DB::prepare('SELECT `id` FROM `*PREFIX*fscache` WHERE `user` = ?',1);
} catch (\Exception $e) {
$this->cacheHasItems = false;
return false;