convert LIMIT to parameter

This commit is contained in:
Jörn Friedrich Dreyer 2013-06-10 10:04:52 +02:00
parent b237d03791
commit 307f1626e8
1 changed files with 1 additions and 1 deletions

View 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;