From b3a44bd7dd470ca68f0f83a3f3a8afbee01380a9 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 7 Mar 2016 18:07:36 +0100 Subject: [PATCH] IcingaObject: fix 'empty' check for relation property --- library/Director/Objects/IcingaObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 1351ca0b..4cd4619e 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -290,7 +290,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer } if ($this->hasRelation($key)) { - if (! $value) { + if (strlen($value) === 0) { return parent::set($key . '_id', null); }