Skip to content

Commit

Permalink
ObjectInspectionDetail: Render 'n. a.' if $command is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Aug 21, 2023
1 parent 3aedcca commit 9baf057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Common/ObjectInspectionDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function createLastCheckResult()
$execCommand = new HtmlElement(
'pre',
null,
Text::create($command)
Text::create($command ?? t('n. a.'))
);

CopyToClipboard::attachTo($execCommand);
Expand Down

0 comments on commit 9baf057

Please sign in to comment.