Skip to content

Commit

Permalink
Fix display_errors condition in GlobalErrorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed May 27, 2018
1 parent 7e2b429 commit 3a272fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/GlobalErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ private static function gracefulExit(StdClass &$context) {
header("Pragma: max-age=0");

// Respond with some content about the problem (don't whitepage):
if (!ini_get("display_errors")) {
$display_errors = ini_get("display_errors");
if (!$display_errors || strtolower($display_errors) == 'off') {
header("Content-Type: text/html;charset=utf-8");
include(getenv("DOCUMENT_ROOT") . "/templates/GlobalErrorHandler.phtml");
} else {
Expand Down

0 comments on commit 3a272fa

Please sign in to comment.