mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
Sync: support IcingaObjects in fillVariables
This commit is contained in:
parent
4292f31f4f
commit
ca76f30aa0
@ -183,7 +183,10 @@ class Sync
|
||||
public function getSpecificValue($row, $var)
|
||||
{
|
||||
if (strpos($var, '.') === false) {
|
||||
if (! property_exists($row, $var)) {
|
||||
if ($row instanceof IcingaObject) {
|
||||
return $row->$var;
|
||||
}
|
||||
if (property_exists($row, $var)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user