route : catch the http errors from PHP (with error code 0) as "Internal Server Error" (error code 500)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2220 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -414,7 +414,7 @@ class route
|
|||||||
@param $e Exception to print */
|
@param $e Exception to print */
|
||||||
public function error ($e)
|
public function error ($e)
|
||||||
{
|
{
|
||||||
if ($e->getCode () === "")
|
if ($e->getCode () === "" || $e->getCode () === 0)
|
||||||
$getCode = 500;
|
$getCode = 500;
|
||||||
else
|
else
|
||||||
$getCode = $e->getCode ();
|
$getCode = $e->getCode ();
|
||||||
|
|||||||
Reference in New Issue
Block a user