CustomVariableArray: implement magic __clone

This commit is contained in:
Thomas Gelf 2016-02-22 11:09:36 +01:00
parent c090665594
commit b59df53ebc
1 changed files with 7 additions and 0 deletions

View File

@ -67,4 +67,11 @@ class CustomVariableArray extends CustomVariable
{ {
return c::renderArray($this->value); return c::renderArray($this->value);
} }
public function __clone()
{
foreach ($this->value as $key => $value) {
$this->value[$key] = clone($value);
}
}
} }