]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove additional array wrapping
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Jun 2013 19:23:34 +0000 (21:23 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Jun 2013 19:23:34 +0000 (21:23 +0200)
lib/files/cache/cache.php

index ec3ba77ea9738a66049e390c546ba5f2757d9796..eced674b4cceea7c094b9e4979ca76bdb9bec6bc 100644 (file)
@@ -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');
                }