X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=3654a1188d4e17493fa8221fb1a63f4406be7359;hp=9df62c8aa487a4834aa07f43d6f9be0a4bc3fe2a;hb=5c6d829db5bd01e575b11b00c1ea26d5888d9bf0;hpb=67e9673e2729bf40b87a20b2afa350be19cd7f5e diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 9df62c8..3654a11 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -235,9 +235,7 @@ sub recurse_match { local $c->req->{arguments} = [ @{$c->req->args}, @parts ]; next TRY_ACTION unless $action->match($c); } - - # Default args is blank, not 0, since Args() - my $args_attr = $action->attributes->{Args}->[0] || ''; + my $args_attr = $action->attributes->{Args}->[0]; # No best action currently # OR This one matches with fewer parts left than the current best action,