From: Gareth Kirwan Date: Fri, 7 Aug 2009 17:17:15 +0000 (+0000) Subject: DispatchType::Chained fix failing test of Args(0) vs Args(0) on surface X-Git-Tag: 5.80008~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=46c5cdc88d59eaaebbde6e2dfce84bebafd9fda7 DispatchType::Chained fix failing test of Args(0) vs Args(0) on surface --- diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 3495749..ba488df 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -235,7 +235,8 @@ sub recurse_match { } # Default args is blank, not 0, since Args() - my $args_attr = $action->attributes->{Args}->[0] || ''; + my $args_attr = $action->attributes->{Args}->[0]; + $args_attr = '' unless defined $args_attr; # No best action currently # OR This one matches with fewer parts left than the current best action,