]> 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>
Mon, 10 Jun 2013 08:04:52 +0000 (10:04 +0200)
lib/files/cache/legacy.php

index b8e2548639baf4171327009f26eaa8238f839f1e..ab8ae6dfadd37a2a5c82121cec4cc6b7210ba02c 100644 (file)
@@ -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;