IcingaObject: fix null check for ranges

fixes #2408
This commit is contained in:
Thomas Gelf 2021-10-11 17:45:55 +02:00
parent 75e414006d
commit 7b4e9b4f91

View File

@ -1503,7 +1503,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
if ($this->supportsGroups() && $this->groups !== null) { if ($this->supportsGroups() && $this->groups !== null) {
$this->groups()->setBeingLoadedFromDb(); $this->groups()->setBeingLoadedFromDb();
} }
if ($this->supportsRanges() && $this->ranges === null) { if ($this->supportsRanges() && $this->ranges !== null) {
$this->ranges()->setBeingLoadedFromDb(); $this->ranges()->setBeingLoadedFromDb();
} }