Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit c1643a2

Browse files
committed
Fixed bad check in NagiosStatusConnector.php
1 parent 5c20756 commit c1643a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
#### Fixed
6+
- Fixed bad check in NagiosStatusConnector.php
57

68
## [v5.0.0]
79
#### Added

lib/NagiosStatusConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct()
3434

3535
$config = $this->configuration->getConfigItem(self::STATUS_NAGIOS, null);
3636

37-
if (is_null($this->host)) {
37+
if (is_null($config)) {
3838
throw new Exception('Property \'' . self::STATUS_NAGIOS . '\' is missing or invalid!');
3939
}
4040

0 commit comments

Comments
 (0)