From 9c95315a9eeeb72dbbbe3ae6babba49dffe46386 Mon Sep 17 00:00:00 2001 From: Jens-Christian Fischer Date: Sun, 12 Apr 2015 14:49:18 +0200 Subject: [PATCH] clarify the duplication of the $params array --- lib/private/files/cache/cache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5