OSDN Git Service
(root)
/
php-libraries
/
Router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c5831e
)
Fix issue #109
author
Antoine Pous
<gecko@dvp.io>
Sat, 18 Mar 2017 12:06:42 +0000
(13:06 +0100)
committer
Antoine Pous
<gecko@dvp.io>
Sat, 18 Mar 2017 12:06:42 +0000
(13:06 +0100)
src/Router.php
patch
|
blob
|
history
diff --git
a/src/Router.php
b/src/Router.php
index
0d08383
..
ed3d660
100755
(executable)
--- a/
src/Router.php
+++ b/
src/Router.php
@@
-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
];
}
}
}