diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index f2fdfd94..0d06068a 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -355,14 +355,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return $this; } - public function getResolvedProperty($key) + public function getResolvedProperty($key, $default = null) { $properties = $this->getResolvedProperties(); if (property_exists($properties, $key)) { return $properties->$key; } - return null; + return $default; } public function getResolvedProperties()