PdfExport: Fix false positive `! empty($this->content)`

This commit is contained in:
Sukhwinder Dhillon 2023-08-15 11:46:23 +02:00 committed by Johannes Meyer
parent 8b99852fc2
commit 847ba4f395
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ trait PdfExport
? $this->pdfHeaderImage
: Icinga::app()->getBootstrapDirectory() . '/' . $this->pdfHeaderImage;
$encodedIcon = is_readable($iconPath) ? base64_encode(file_get_contents($iconPath)) : null;
$html = $this instanceof CompatController && ! empty($this->content)
$html = $this instanceof CompatController && ! $this->content->isEmpty()
? $this->content
: $this->renderControllerAction();