Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:interstar001:Icinga2
icingaweb2-module-trapdirector
trapdirector-1.0.6_-_fix_count_problem.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File trapdirector-1.0.6_-_fix_count_problem.patch of Package icingaweb2-module-trapdirector
# see https://github.com/patrickpr/trapdirector/pull/74 Index: trapdirector-1.0.6/application/controllers/HandlerController.php =================================================================== --- trapdirector-1.0.6.orig/application/controllers/HandlerController.php +++ trapdirector-1.0.6/application/controllers/HandlerController.php @@ -546,7 +546,7 @@ class HandlerController extends TrapsCon 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor