Fixed bug in route finder.

This commit is contained in:
Taylor Otwell 2011-06-15 13:42:01 -07:00
parent 324845a855
commit 2413b9cc63
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public static function find($name)
{
$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));
}