Don't throw an exception if a filter is not found.

This commit is contained in:
Taylor Otwell 2011-08-05 15:01:25 -05:00
parent 5a2dfd72d7
commit 4326f95997
1 changed files with 1 additions and 4 deletions

View File

@ -42,10 +42,7 @@ public static function call($filters, $parameters = array(), $override = false)
{
foreach (explode(', ', $filters) as $filter)
{
if ( ! isset(static::$filters[$filter]))
{
throw new \Exception("Route filter [$filter] is not defined.");
}
if ( ! isset(static::$filters[$filter])) continue;
$response = call_user_func_array(static::$filters[$filter], $parameters);