mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
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);
|
return c::renderArray($this->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
foreach ($this->value as $key => $value) {
|
||||||
|
$this->value[$key] = clone($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user