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=349574975e230221c0227604abcef28461dd5536;hp=890961dae1850befb526a1e26db0ef008c18ac50;hb=f4fba3d7cf527e80b293f46c1830f77e557bf6d2;hpb=64bd0ae240961fc2255f080d150485d8a6019ff1 diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 890961d..3495749 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -233,7 +233,9 @@ sub recurse_match { local $c->req->{arguments} = [ @{$c->req->args}, @parts ]; next TRY_ACTION unless $action->match($c); } - my $args_attr = $action->attributes->{Args}->[0]; + + # Default args is blank, not 0, since Args() + my $args_attr = $action->attributes->{Args}->[0] || ''; # No best action currently # OR This one matches with fewer parts left than the current best action,