Skip to content
Snippets Groups Projects
Commit 307f1626 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

convert LIMIT to parameter

parent b237d037
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment