]> source.dussan.org Git - nextcloud-server.git/commitdiff
convert LIMIT to parameter
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 10 Jun 2013 08:04:52 +0000 (10:04 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 14 Jun 2013 11:06:13 +0000 (13:06 +0200)
lib/files/cache/legacy.php

index f6e53ab65b49b96087dd05b8305a6b192f67c64d..73b473f7890cb324ccc1c03f762519f296dabe2a 100644 (file)
@@ -40,7 +40,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;