Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
count(): Parameter must be an array or an object that implements Countable
  • Loading branch information
godrockz authored Feb 28, 2023
1 parent 5a6d188 commit 88e40bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/HandlerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ protected function handlerformAction()
if ($this->apiMode == TRUE)
{
$object=$this->getIdoConn()->getHostGroupById($params['hostid']['val']);
if (count($object) == 0 || $params['host_name']['val'] != $object->__name)
if (empty($object) || $params['host_name']['val'] != $object->__name)
{
$this->_helper->json(array('status'=>"Invalid object group id : Please re enter service"));
return;
Expand Down Expand Up @@ -708,4 +708,4 @@ protected function prepareTabs()
);
}

}
}

0 comments on commit 88e40bc

Please sign in to comment.