diff --git a/src/Helper/Router.php b/src/Helper/Router.php index e4d9d84..ae54fac 100644 --- a/src/Helper/Router.php +++ b/src/Helper/Router.php @@ -13,7 +13,7 @@ public function __construct($routes = array()) { public function route($input) { - $input = trim($input, '/'); + $input = $input == null ? '' : trim($input, '/'); foreach($this->routes as $route => $controller) { $this->keys = array();