Skip to content

Commit

Permalink
Update ExceptionHandler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Sep 27, 2020
1 parent 0fcd11f commit 0fda10a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions libraries/src/Exception/ExceptionHandler.php
Expand Up @@ -95,14 +95,9 @@ public static function render($error)
$document->setError($error);

// Clear buffered output at all levels
$callerFunction = static::getCallerFunctionName();

if ($callerFunction === false)
while (ob_get_level())
{
while (ob_get_level())
{
ob_end_clean();
}
ob_end_clean();
}

$document->setTitle(Text::_('ERROR') . ': ' . $error->getCode());
Expand Down

0 comments on commit 0fda10a

Please sign in to comment.