From e6afe84940f4f639ead2066def5c7e8a9cdc7401 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Wed, 27 Nov 2019 15:22:39 +0100 Subject: [PATCH] Fixed pdf --- pandora_console/include/class/Diagnostics.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/class/Diagnostics.class.php b/pandora_console/include/class/Diagnostics.class.php index ee61ec743d..179cf6ffd1 100644 --- a/pandora_console/include/class/Diagnostics.class.php +++ b/pandora_console/include/class/Diagnostics.class.php @@ -2092,9 +2092,9 @@ class Diagnostics extends Wizard * * @param string|null $filename Filename. * - * @return void + * @return mixed */ - public function exportPDF(?string $filename=null):void + public function exportPDF(?string $filename=null) { global $config; @@ -2141,7 +2141,7 @@ class Diagnostics extends Wizard // Write html filename. $mpdf->writePDFfile($filename); - exit; + return; }