From cdf26a00c02e0f5ef3b8291c607e7531fe2e6eff Mon Sep 17 00:00:00 2001 From: Frank Bergkemper Date: Wed, 29 Aug 2018 13:51:30 +0200 Subject: [PATCH] webui: variable not initialized properly $jobdefaults was not initialzed properly and could lead to a PHP notice. --- webui/module/Job/src/Job/Controller/JobController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webui/module/Job/src/Job/Controller/JobController.php b/webui/module/Job/src/Job/Controller/JobController.php index 1b37f21d95f..f461590832d 100644 --- a/webui/module/Job/src/Job/Controller/JobController.php +++ b/webui/module/Job/src/Job/Controller/JobController.php @@ -303,6 +303,8 @@ public function runAction() if ($jobname != null) { $jobdefaults = $this->getJobModel()->getJobDefaults($this->bsock, $jobname); + } else { + $jobdefaults = null; } // Get required form construction data, jobs, clients, etc.