]> git.decadent.org.uk Git - maypole.git/commitdiff
At least do it right, if we should do it.
authorMarcus Ramberg <mramberg@cpan.org>
Thu, 9 Dec 2004 07:23:19 +0000 (07:23 +0000)
committerMarcus Ramberg <mramberg@cpan.org>
Thu, 9 Dec 2004 07:23:19 +0000 (07:23 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@310 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole.pm

index de7fbebd5938fa46625919fe4c94869c3a8468ae..b14720dd7cd262b96b327255881fc7ea51dcfe3d 100644 (file)
@@ -185,7 +185,7 @@ sub parse_path {
     shift @pi while @pi and !$pi[0];
     $self->{table}  = shift @pi;
     $self->{action} = shift @pi;
-    $self->{action} = "index" unless $self->{action};
+    $self->{action} ||= "index";
     $self->{args}   = \@pi;
 }