CustomVariableArray: implement magic __clone
This commit is contained in:
parent
c090665594
commit
b59df53ebc
|
@ -67,4 +67,11 @@ class CustomVariableArray extends CustomVariable
|
|||
{
|
||||
return c::renderArray($this->value);
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
foreach ($this->value as $key => $value) {
|
||||
$this->value[$key] = clone($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue