From f9f1298bfd4427e9db0e8fe6af689067aedd936c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 28 Feb 2016 14:37:13 +0100 Subject: [PATCH] IcingaObject: allow default for getResolvedProperty --- library/Director/Objects/IcingaObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()