From 84bc75f21e79e801af1326fb75ddf9232a032f32 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 21 Apr 2022 11:03:55 +0200 Subject: [PATCH] fix TypeError: fpassthru(): Argument #1 ($stream) must be of type resource, string given --- importexport/inc/class.importexport_export_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index d3ccf8900f..61192d66af 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -453,11 +453,11 @@ class importexport_export_ui { ($_GET['_type'] ? $_GET['_type'] : 'application/text') . ($charset ? '; charset='.$charset : ''), filesize($tmpfname)); - fpassthru($tmpfname); + readfile($tmpfname); unlink($tmpfname); // Try to avoid any extra finishing output exit(); } -} // end class uiexport +} // end class uiexport \ No newline at end of file