Skip to content

Commit

Permalink
Check the output buffer length before clean
Browse files Browse the repository at this point in the history
  • Loading branch information
matricali committed Feb 1, 2020
1 parent 1782fc7 commit 34dfcd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/goat.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public function __construct($config)

public function cleanPage()
{
ob_end_clean();
if (ob_get_length() > 0) {
ob_end_clean();
}

return true;
}
Expand Down

0 comments on commit 34dfcd2

Please sign in to comment.