Skip to content

Commit

Permalink
Merge pull request #4 from duxabilii/master
Browse files Browse the repository at this point in the history
Error if no buffer output
  • Loading branch information
shadz3rg authored May 26, 2017
2 parents 8f1c7bf + a63a5db commit 5717779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPStamp/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function download($fileName = null)
header('Content-Disposition: attachment;filename="' . $fileName . '"');

// Send file - required ob_clean() & exit;
ob_clean();
if (ob_get_contents()) ob_clean();
readfile($tempArchive);
unlink($tempArchive);
exit;
Expand Down

0 comments on commit 5717779

Please sign in to comment.