From 03a7598cf7694135499e92970bd9f4c8c14fb2a8 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 21 Dec 2016 07:21:40 -0800 Subject: [PATCH] only output debug for fatal errors --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index df9073b..2708fa3 100644 --- a/public/index.php +++ b/public/index.php @@ -34,7 +34,7 @@ try { function shutdown() { $error = error_get_last(); - if($error['type'] !== 0) { + if($error['type'] === E_ERROR) { header('HTTP/1.1 500 Server Error'); header('X-PHP-Error-Type: '.$error['type']); header('X-PHP-Error-Message: '.$error['message']);