mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
IcingaObjectInspection: deal with CheckResults...
...without a command property fixes #1402
This commit is contained in:
parent
5149f05d74
commit
bd40160391
@ -48,10 +48,12 @@ class IcingaObjectInspection extends BaseElement
|
||||
{
|
||||
$this->add(Html::tag('h2', null, $this->translate('Last Check Result')));
|
||||
$this->renderCheckResultDetails($result);
|
||||
$this->renderExecutedCommand($result->command);
|
||||
if (property_exists($result, 'command') && is_array($result->command)) {
|
||||
$this->renderExecutedCommand($result->command);
|
||||
}
|
||||
}
|
||||
|
||||
protected function renderExecutedCommand($command)
|
||||
protected function renderExecutedCommand(array $command)
|
||||
{
|
||||
$command = implode(' ', array_map('escapeshellarg', $command));
|
||||
$this->add([
|
||||
|
Loading…
x
Reference in New Issue
Block a user