Warning fix
Tomas Doran [Tue, 26 Jul 2011 14:16:36 +0000 (15:16 +0100)]
lib/Catalyst/DispatchType/Chained.pm

index 5ed6088..9c32258 100644 (file)
@@ -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