Permalink
Browse files

Fixed: Warning Light was incorrectly counting object

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 30, 2018
1 parent 0d2ee01 commit 21c5c113f9579b4f085202621ba4bd1bc0b203e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 warninglight
@@ -112,7 +112,7 @@ while (1 == 1) {
$issues = array(); // reset at each iteration
$states = query('hosts?Columns=name,state,services_with_fullstate');
if (is_object($states) && count($states) > 0) {
if (is_object($states) && count((array)$states) > 0) {
foreach ($states->content as $key=>$host) {
if (isset($host->services_with_fullstate)) {
foreach ($host->services_with_fullstate as $services) {

0 comments on commit 21c5c11

Please sign in to comment.