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:
@@ -536,7 +536,7 @@ class route
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
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
|
// TODO : Allow a specific page to be configured and displayed
|
||||||
echo "<H1>Internal server error</h1>";
|
echo "<H1>Internal server error</h1>";
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
@@ -573,7 +573,7 @@ class route
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
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
|
// TODO : Allow a specific page to be configured and displayed
|
||||||
echo "<H1>Internal server error</h1>";
|
echo "<H1>Internal server error</h1>";
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user