clarify the duplication of the $params array
This commit is contained in:
parent
22c6216f5c
commit
9c95315a9e
1 changed files with 2 additions and 1 deletions
3
lib/private/files/cache/cache.php
vendored
3
lib/private/files/cache/cache.php
vendored
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue