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:
2015-08-07 09:39:06 +00:00
parent b189725fa2
commit be7085fd68

View File

@@ -414,7 +414,7 @@ class route
@param $e Exception to print */
public function error ($e)
{
if ($e->getCode () === "")
if ($e->getCode () === "" || $e->getCode () === 0)
$getCode = 500;
else
$getCode = $e->getCode ();