From 8adc969fb08ffab5f8e9e0b05b081046bdc2ad9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:21:35 +0200 Subject: Merging upstream version 1.2.4. Signed-off-by: Daniel Baumann --- application/clicommands/Icinga2Command.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'application/clicommands') diff --git a/application/clicommands/Icinga2Command.php b/application/clicommands/Icinga2Command.php index 816e063..e0e0ee4 100644 --- a/application/clicommands/Icinga2Command.php +++ b/application/clicommands/Icinga2Command.php @@ -138,6 +138,8 @@ EOT } } + assert(isset($service), '$service not initialized in the loop'); + $monObj = $service ? [ "apply Service \"{$icinga2CfgObjPrefix}_{$checkCommand}\" {", -- cgit v1.2.3