Fixed: replace empty parameter-values with null.

This commit is contained in:
Simon Sessingø
2017-02-12 20:45:56 +01:00
parent bf069c2d42
commit 5977efc942
+1 -1
View File
@@ -124,7 +124,7 @@ abstract class Route implements IRoute
/* Only take matched parameters with name */
foreach ($parameters[1] as $name) {
$values[$name] = isset($matches[$name]) ? $matches[$name] : null;
$values[$name] = (isset($matches[$name]) && $matches[$name] !== '') ? $matches[$name] : null;
}
return $values;