From: Jörn Friedrich Dreyer Date: Mon, 10 Jun 2013 08:04:52 +0000 (+0200) Subject: convert LIMIT to parameter X-Git-Tag: v5.0.8~83^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb33c01a8fc34cad00f8fd7c6d99d66204d871a8;p=nextcloud-server.git convert LIMIT to parameter --- 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;