fixed bugs found when unit testing.

This commit is contained in:
Taylor Otwell
2011-11-02 23:02:23 -05:00
parent 9caf239f6b
commit 895d876463
4 changed files with 47 additions and 28 deletions

View File

@@ -272,7 +272,7 @@ class Router {
for ($i = 0; $i < $count; $i++)
{
if (preg_match('/\(.+\)/', $route[$i]))
if (preg_match('/\(.+\)/', $route[$i]) and isset($uri[$i]))
{
$parameters[] = $uri[$i];
}