summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens-Christian Fischer <jens-christian.fischer@switch.ch>2015-04-12 14:49:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-16 16:30:24 +0200
commit07ef143fdeba3fe40ed61659dd32662e040b6766 (patch)
tree57edef84b0f6201d6aaf492b5c7ae59f1eb07e1e
parent4eb90cf3dc4b350864d74a3df80bebd60de1391c (diff)
downloadnextcloud-server-07ef143fdeba3fe40ed61659dd32662e040b6766.tar.gz
nextcloud-server-07ef143fdeba3fe40ed61659dd32662e040b6766.zip
clarify the duplication of the $params array
-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 bb36621d465..a41ff12ba0e 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -266,7 +266,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;