return '' instead of false

This commit is contained in:
Jörn Friedrich Dreyer 2015-09-23 12:32:49 +02:00
parent ca8d589f27
commit d81416c51d
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
if (strpos($pathInfo, $name) === 0) {
$pathInfo = substr($pathInfo, strlen($name));
}
if($pathInfo === '/'){
if($pathInfo === false || $pathInfo === '/'){
return '';
} else {
return $pathInfo;