clarify the duplication of the $params array

This commit is contained in:
Jens-Christian Fischer 2015-04-12 14:49:18 +02:00
parent 22c6216f5c
commit 9c95315a9e
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ class Cache {
} }
list($queryParts, $params) = $this->buildParts($data); 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 = array_merge($params, $params);
$params[] = $id; $params[] = $id;