mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Clear the buffer before sending the PDF output
This commit is contained in:
@@ -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 @@
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user