From: Marcus Ramberg Date: Thu, 9 Dec 2004 07:23:19 +0000 (+0000) Subject: At least do it right, if we should do it. X-Git-Tag: 2.10~54 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=commitdiff_plain;h=38b69fcfc9f24e530622e44f4a2d685604f07e39 At least do it right, if we should do it. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@310 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index de7fbeb..b14720d 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -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; }