From e3fe367e7f51c5ca7b283a64ca28f6f2e8924bea Mon Sep 17 00:00:00 2001 From: Jaap Jansma <jaap.jansma@civicoop.org> Date: Wed, 2 Aug 2023 15:38:20 +0200 Subject: [PATCH] Fixed issue with PDF export --- CRM/DataprocessorOutputExport/PDF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/DataprocessorOutputExport/PDF.php b/CRM/DataprocessorOutputExport/PDF.php index 3b091d58..cd35694e 100644 --- a/CRM/DataprocessorOutputExport/PDF.php +++ b/CRM/DataprocessorOutputExport/PDF.php @@ -418,7 +418,7 @@ class CRM_DataprocessorOutputExport_PDF extends CRM_DataprocessorOutputExport_Ab fclose($file); if (isset($content['header'])) { - $file = fopen($filename.".html.header_part.".$sectionHeader, 'a'); + $file = fopen($filename.".html.header_part.".$sectionHeader, 'w'); fwrite($file, $content['header'] . "\r\n"); fclose($file); } -- GitLab