Fixed: replace empty parameter-values with null.

This commit is contained in:
Simon Sessingø
2017-02-12 20:43:49 +01:00
parent 86c3e513c3
commit ccd3cf450e

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;