From 2413b9cc630ac616231ea4587fbfd3fd86922134 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 15 Jun 2011 13:42:01 -0700 Subject: [PATCH] Fixed bug in route finder. --- system/route/finder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }