OSDN Git Service

Fix issue #109
authorAntoine Pous <gecko@dvp.io>
Sat, 18 Mar 2017 12:06:42 +0000 (13:06 +0100)
committerAntoine Pous <gecko@dvp.io>
Sat, 18 Mar 2017 12:06:42 +0000 (13:06 +0100)
src/Router.php

index 0d08383..ed3d660 100755 (executable)
@@ -133,8 +133,8 @@ class Router
 
                 // loop trough parameter names, store matching value in $params array
                 foreach ($argument_keys as $key => $name) {
-                    if (isset($matches[$key])) {
-                        $params[$name] = $matches[$key];
+                    if (isset($matches[$key+1])) {
+                        $params[$name] = $matches[$key+1];
                     }
                 }
             }