summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/cache.php
diff options
context:
space:
mode:
authorJens-Christian Fischer <jens-christian.fischer@switch.ch>2015-04-12 14:49:18 +0200
committerJens-Christian Fischer <jens-christian.fischer@switch.ch>2015-04-12 14:49:18 +0200
commit9c95315a9eeeb72dbbbe3ae6babba49dffe46386 (patch)
tree3ae4319654a574e8ccdb14aa06e3ae2890d57c1f /lib/private/files/cache/cache.php
parent22c6216f5c8bf688585a3d3c2722408e15452283 (diff)
downloadnextcloud-server-9c95315a9eeeb72dbbbe3ae6babba49dffe46386.tar.gz
nextcloud-server-9c95315a9eeeb72dbbbe3ae6babba49dffe46386.zip
clarify the duplication of the $params array
Diffstat (limited to 'lib/private/files/cache/cache.php')
-rw-r--r--lib/private/files/cache/cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 70da3dc776d..13ebd6cb302 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -306,7 +306,8 @@ class Cache {
}
list($queryParts, $params) = $this->buildParts($data);
-
+ // duplicate $params because we need the parts twice in the SQL statement
+ // once for the SET part, once in the WHERE clause
$params = array_merge($params, $params);
$params[] = $id;