X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=d43698381aedadfed94d1e9fff01a1c52a1574d6;hb=eb221f9654404bdad5bd0dc5157e3a04bc272fa4;hp=0274dba9e3b4de748d99a0e7038c1a2a67944eee;hpb=953c176dcad596a946c91e409b902473c7369746;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 0274dba..d436983 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -181,7 +181,7 @@ sub recurse_match { if (!$best_action || @parts < @{$best_action->{parts}} || - (!@parts && $args_attr == 0)){ + (!@parts && $args_attr eq 0)){ $best_action = { actions => [ $action ], captures=> [], @@ -208,7 +208,7 @@ sub register { return 0 unless @chained_attr; - if (@chained_attr > 2) { + if (@chained_attr > 1) { Catalyst::Exception->throw( "Multiple Chained attributes not supported registering ${action}" );