mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
CustomVariableDictionary: always store an object
This commit is contained in:
parent
0c121cf4fe
commit
9d111d0db0
@ -59,9 +59,9 @@ class CustomVariableDictionary extends CustomVariable implements Countable
|
|||||||
|
|
||||||
public function getValue()
|
public function getValue()
|
||||||
{
|
{
|
||||||
$ret = array();
|
$ret = (object) array();
|
||||||
foreach ($this->value as $key => $var) {
|
foreach ($this->value as $key => $var) {
|
||||||
$ret[$key] = $var->getValue();
|
$ret->$key = $var->getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user