Skip to content

Commit

Permalink
PdfExport: Fix false positive ! empty($this->content)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Aug 22, 2023
1 parent 8b99852 commit 847ba4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Common/PdfExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function sendAsPdf()
? $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();

Expand Down

0 comments on commit 847ba4f

Please sign in to comment.