mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-05 05:09:34 -05:00
ProcessCommand: Define $name in method scope
- Fixes variable is probably undefined
This commit is contained in:
parent
6306b5306c
commit
5899aa96ef
1 changed files with 1 additions and 1 deletions
|
|
@ -110,8 +110,8 @@ class ProcessCommand extends Command
|
|||
exit(1);
|
||||
}
|
||||
|
||||
$name = $this->params->get('config');
|
||||
try {
|
||||
$name = $this->params->get('config');
|
||||
if ($name === null) {
|
||||
$name = $this->getFirstProcessName();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue