diff --git a/library/Icingadb/Model/HostState.php b/library/Icingadb/Model/HostState.php index 69e63bb1..11e25533 100644 --- a/library/Icingadb/Model/HostState.php +++ b/library/Icingadb/Model/HostState.php @@ -73,7 +73,7 @@ class HostState extends State */ public function getStateText() { - return HostStates::text($this->properties['soft_state']); + return HostStates::text($this->soft_state); } /** @@ -83,6 +83,6 @@ class HostState extends State */ public function getStateTextTranslated() { - return HostStates::text($this->properties['soft_state']); + return HostStates::text($this->soft_state); } } diff --git a/library/Icingadb/Model/ServiceState.php b/library/Icingadb/Model/ServiceState.php index 9a95bc61..0124fa82 100644 --- a/library/Icingadb/Model/ServiceState.php +++ b/library/Icingadb/Model/ServiceState.php @@ -70,7 +70,7 @@ class ServiceState extends State */ public function getStateText() { - return ServiceStates::text($this->properties['soft_state']); + return ServiceStates::text($this->soft_state); } /** @@ -80,6 +80,6 @@ class ServiceState extends State */ public function getStateTextTranslated() { - return ServiceStates::text($this->properties['soft_state']); + return ServiceStates::text($this->soft_state); } }