Commit 2413b9cc authored by Taylor Otwell's avatar Taylor Otwell

Fixed bug in route finder.

parent 324845a8
...@@ -53,7 +53,7 @@ class Finder { ...@@ -53,7 +53,7 @@ class Finder {
{ {
$route = $recursiveIterator->getSubIterator(); $route = $recursiveIterator->getSubIterator();
if ($route['name'] == $name) if (isset($route['name'] and $route['name'] == $name)
{ {
return static::$names[$name] = array($arrayIterator->key() => iterator_to_array($route)); return static::$names[$name] = array($arrayIterator->key() => iterator_to_array($route));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment