From fb33c01a8fc34cad00f8fd7c6d99d66204d871a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 10 Jun 2013 10:04:52 +0200 Subject: [PATCH] convert LIMIT to parameter --- lib/files/cache/legacy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php index f6e53ab65b4..73b473f7890 100644 --- a/lib/files/cache/legacy.php +++ b/lib/files/cache/legacy.php @@ -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; -- 2.39.5