mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
remove additional array wrapping
This commit is contained in:
6
lib/files/cache/cache.php
vendored
6
lib/files/cache/cache.php
vendored
@@ -208,9 +208,9 @@ class Cache {
|
||||
$params[] = $this->getNumericStorageId();
|
||||
$valuesPlaceholder = array_fill(0, count($queryParts), '?');
|
||||
|
||||
$sql = 'INSERT INTO `*PREFIX*filecache`(' . implode(', ', $queryParts) . ')'
|
||||
. ' VALUES(' . implode(', ', $valuesPlaceholder) . ')';
|
||||
\OC_DB::executeAudited($sql,array($params));
|
||||
$sql = 'INSERT INTO `*PREFIX*filecache` (' . implode(', ', $queryParts) . ')'
|
||||
. ' VALUES (' . implode(', ', $valuesPlaceholder) . ')';
|
||||
\OC_DB::executeAudited($sql, $params);
|
||||
|
||||
return (int)\OC_DB::insertid('*PREFIX*filecache');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user