convert LIMIT to parameter
This commit is contained in:
parent
b237d03791
commit
307f1626e8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue