From a49f163ca21f2adc6a7d9b75051f76b1290d67a6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Mar 2016 10:35:11 +0100 Subject: [PATCH] IcingaObject: fix argument setter --- 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 c41ebd3e..9dc2b6e0 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -379,7 +379,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return $this; } - if ($this->propertyIsBoolean($key) && $value !== null) { + if ($this->propertyIsBoolean($key)) { return parent::set($key, $this->normalizeBoolean($value)); } @@ -417,7 +417,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer protected function setArguments($value) { - $this->arguments->setArguments($value); + $this->arguments()->setArguments($value); return $this; }