clarify the duplication of the $params array
This commit is contained in:
parent
22c6216f5c
commit
9c95315a9e
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue