fix TypeError: fpassthru(): Argument #1 ($stream) must be of type resource, string given

This commit is contained in:
ralf 2022-04-21 11:03:55 +02:00
parent a312b7fe71
commit 84bc75f21e

View File

@ -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