From: Gareth Kirwan Date: Mon, 8 Oct 2007 11:22:37 +0000 (+0000) Subject: Chained: Fix Args check treating undefind Args the same as 0. X-Git-Tag: 5.7099_04~130 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=a8194217f338ccef382b194b4a849fde15892f98 Chained: Fix Args check treating undefind Args the same as 0. --- diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 0274dba..02f4c21 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=> [],