diff --git a/system/route/finder.php b/system/route/finder.php index fb932a7e..b5b12c1c 100644 --- a/system/route/finder.php +++ b/system/route/finder.php @@ -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)); }