From 2df5335d50e1f3a7a04c9121b6d5394ac498bec5 Mon Sep 17 00:00:00 2001 From: Dominik Riva Date: Thu, 9 Nov 2023 13:46:41 +0100 Subject: [PATCH] don't reinitialize variable on iteration Fixes https://github.com/Icinga/icingaweb2-module-x509/issues/219 --- application/clicommands/JobsCommand.php | 1 - 1 file changed, 1 deletion(-) diff --git a/application/clicommands/JobsCommand.php b/application/clicommands/JobsCommand.php index 04ce9da0..25da5c90 100644 --- a/application/clicommands/JobsCommand.php +++ b/application/clicommands/JobsCommand.php @@ -172,7 +172,6 @@ protected function fetchSchedules(?string $jobName, ?string $scheduleName): arra $schedules->filter(Filter::equal('name', $scheduleName)); } - $jobSchedules = []; /** @var X509Schedule $scheduleModel */ foreach ($schedules as $scheduleModel) { $schedule = Schedule::fromModel($scheduleModel);