diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 02:48:15 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 02:48:15 -0700 |
commit | d264d0a79dd4433771da35f402d119de192a9a80 (patch) | |
tree | b840faa4b6deb45bc826dddccf5bc01d35e860ae /lib | |
parent | db06b906e50d7d1b7eca28f51db913af1fbc81f1 (diff) | |
parent | 307f1626e8ef86b1d4a04502c317e60066f92dd2 (diff) | |
download | nextcloud-server-d264d0a79dd4433771da35f402d119de192a9a80.tar.gz nextcloud-server-d264d0a79dd4433771da35f402d119de192a9a80.zip |
Merge pull request #3648 from owncloud/sql_limit_as_param
convert LIMIT to parameter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/cache/legacy.php | 2 |
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; |