From 7b4e9b4f91600e4a9f454cd9f08a9d44426a9ac3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 11 Oct 2021 17:45:55 +0200 Subject: [PATCH] IcingaObject: fix null check for ranges fixes #2408 --- 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 77aff428..18e212a5 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -1503,7 +1503,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer if ($this->supportsGroups() && $this->groups !== null) { $this->groups()->setBeingLoadedFromDb(); } - if ($this->supportsRanges() && $this->ranges === null) { + if ($this->supportsRanges() && $this->ranges !== null) { $this->ranges()->setBeingLoadedFromDb(); }