Chained: Fix Args check treating undefind Args the same as 0.
Gareth Kirwan [Mon, 8 Oct 2007 11:22:37 +0000 (11:22 +0000)]
lib/Catalyst/DispatchType/Chained.pm

index 0274dba..02f4c21 100644 (file)
@@ -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=> [],