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
This commit is contained in:
2014-06-01 08:17:49 +00:00
parent 9398370664
commit 5deed571ec

View File

@@ -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 "<H1>Internal server error</h1>";
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 "<H1>Internal server error</h1>";
echo $e->getMessage();