From 12c0f4efd67d5b64266f3c7167bc3435990b7724 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