Sync: support IcingaObjects in fillVariables

This commit is contained in:
Thomas Gelf 2016-02-24 15:19:54 +01:00
parent 4292f31f4f
commit ca76f30aa0
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}