ProcessCheckResultCommandForm: Fix `Variable '$object' is probably undefined`
This commit is contained in:
parent
3db461ed62
commit
4341a32c1f
|
@ -40,6 +40,7 @@ class ProcessCheckResultCommandForm extends ObjectsCommandForm
|
|||
*/
|
||||
public function createElements(array $formData)
|
||||
{
|
||||
$object = null;
|
||||
foreach ($this->getObjects() as $object) {
|
||||
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
|
||||
// Nasty, but as getObjects() returns everything but an object with a real
|
||||
|
|
Loading…
Reference in New Issue