diff --git a/app/xml_cdr/xml_cdr_export.php b/app/xml_cdr/xml_cdr_export.php index 18b3211b2e..e0c3938819 100644 --- a/app/xml_cdr/xml_cdr_export.php +++ b/app/xml_cdr/xml_cdr_export.php @@ -418,6 +418,12 @@ if ($p >= 55) { $pdf->AddPage('L', array($page_width, $page_height)); } + + //clear the output buffer + if (ob_get_level()) { + ob_end_clean(); + } + //output remaining data $data_body_chunk = $data_start.$data_head; foreach ($data_body as $data_body_row) { @@ -450,4 +456,4 @@ } -?> \ No newline at end of file +?>