Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
// clean the output buffer before print PDF in BO
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Jan 15, 2013
1 parent 8e43f1e commit 433a446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/pdf/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ public function render($display = true)
}

if ($render)
{
// clean the output buffer to avoid random bugs with tcpdf
ob_end_clean();
return $this->pdf_renderer->render($this->filename, $display);
}
}

public function getTemplateObject($object)
Expand Down

0 comments on commit 433a446

Please sign in to comment.