From: Jens-Christian Fischer Date: Sun, 12 Apr 2015 12:49:18 +0000 (+0200) Subject: clarify the duplication of the $params array X-Git-Tag: v8.1.0alpha2~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c95315a9eeeb72dbbbe3ae6babba49dffe46386;p=nextcloud-server.git clarify the duplication of the $params array --- 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;