From 8e6732c434972f83e0682cc66d1400e84e054cb3 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 22 Aug 2023 10:32:06 +0200 Subject: [PATCH] ObjectInspectionDetail: HtmlElement param#3 expects ValidHtml --- library/Icingadb/Common/ObjectInspectionDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Common/ObjectInspectionDetail.php b/library/Icingadb/Common/ObjectInspectionDetail.php index 7de54ffde..54b31faf9 100644 --- a/library/Icingadb/Common/ObjectInspectionDetail.php +++ b/library/Icingadb/Common/ObjectInspectionDetail.php @@ -90,7 +90,7 @@ protected function createLastCheckResult() ]; if ($command) { - $execCommand = new HtmlElement('pre', null, $command); + $execCommand = new HtmlElement('pre', null, Text::create($command)); CopyToClipboard::attachTo($execCommand); } else { $execCommand = new EmptyState(t('n. a.'));