Skip to content

Commit

Permalink
webui: variable not initialized properly
Browse files Browse the repository at this point in the history
$jobdefaults was not initialzed properly and could lead to a PHP notice.
  • Loading branch information
fbergkemper committed Aug 29, 2018
1 parent 615ff58 commit cdf26a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webui/module/Job/src/Job/Controller/JobController.php
Expand Up @@ -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.
Expand Down

0 comments on commit cdf26a0

Please sign in to comment.