From 5deed571ec1217c4b9379688cc43c507cbcf482e Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sun, 1 Jun 2014 08:17:49 +0000 Subject: [PATCH] Don't display an error if the headers are already sent git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1375 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route.php b/route.php index 41ce1d2..043a494 100644 --- a/route.php +++ b/route.php @@ -536,7 +536,7 @@ class route } catch (Exception $e) { - header ($_SERVER["SERVER_PROTOCOL"]." 500 Internal Server Error"); + @header ($_SERVER["SERVER_PROTOCOL"]." 500 Internal Server Error"); // TODO : Allow a specific page to be configured and displayed echo "

Internal server error

"; echo $e->getMessage(); @@ -573,7 +573,7 @@ class route } catch (Exception $e) { - header ($_SERVER["SERVER_PROTOCOL"]." 500 Internal Server Error"); + @header ($_SERVER["SERVER_PROTOCOL"]." 500 Internal Server Error"); // TODO : Allow a specific page to be configured and displayed echo "

Internal server error

"; echo $e->getMessage();