From: Sebastian Riedel Date: Sat, 22 Oct 2005 12:56:36 +0000 (+0000) Subject: Fixed a typo X-Git-Tag: 5.7099_04~1133 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f3d0bbcf1bcf247e803f2229c0693114cc3a9170 Fixed a typo --- diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index a9ad5a4..44e5afe 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -259,15 +259,19 @@ sub get_action { foreach my $child ( $inherit ? @match : $match[-1] ) { my $node = $child->actions; - unless ($inherit) { - $namespace = '' if $namespace eq '/'; - my $reverse = $node->{$action}->reverse; - my $name = $namespace - ? $namespace =~ /\/$/ ? "$namespace$action" : "$namespace/$action" - : $action; - last unless $name eq $reverse; + if ( defined $node->{$action} ) { + unless ($inherit) { + $namespace = '' if $namespace eq '/'; + my $reverse = $node->{$action}->reverse; + my $name = $namespace + ? $namespace =~ /\/$/ + ? "$namespace$action" + : "$namespace/$action" + : $action; + last unless $name eq $reverse; + } + push( @results, [ $node->{$action} ] ); } - push( @results, [ $node->{$action} ] ) if defined $node->{$action}; } return \@results; }