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…
Reference in New Issue