X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=9c32258debeef9b423f0a73ae6f3f156ea5458e0;hb=9d286ef65c75378a7dc46a6ddbe1c7fe445890db;hp=5ed608869508082651526217e54271b7e607135e;hpb=0c78acb6b82d45623c1cdc2a5263d5e791e14d09;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 5ed6088..9c32258 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -203,7 +203,7 @@ sub recurse_match { if (my $capture_attr = $action->attributes->{CaptureArgs}) { # Short-circuit if not enough remaining parts - next TRY_ACTION unless @parts >= $capture_attr->[0]; + next TRY_ACTION unless @parts >= ($capture_attr->[0]||0); my @captures; my @parts = @parts; # localise