Fixed bug in route finder.

This commit is contained in:
Taylor Otwell
2011-06-15 13:42:01 -07:00
parent 324845a855
commit 2413b9cc63

View File

@@ -53,7 +53,7 @@ class Finder {
{
$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));
}