diff options
author | Jens-Christian Fischer <jens-christian.fischer@switch.ch> | 2015-04-12 14:49:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-30 16:07:06 +0200 |
commit | c668a7c66547809158977be754c601984af4bb2f (patch) | |
tree | 7a579cff1a119f7a8c4329f823ca9d5ff3382ebe | |
parent | 8d51e8eb724b8d13c23b74f26933aa3b5a6eaa49 (diff) | |
download | nextcloud-server-c668a7c66547809158977be754c601984af4bb2f.tar.gz nextcloud-server-c668a7c66547809158977be754c601984af4bb2f.zip |
clarify the duplication of the $params array
-rw-r--r-- | lib/private/files/cache/cache.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 7ea90d0e75e..358e654aada 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -285,7 +285,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; |