X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND.pm;h=3c053b853e66606e9d72c3573122deab9b4bef7d;hb=3434a018e5752f33d863d7cccd1be8ca9426e777;hp=dd017f3a4201c73c8a579373ace4d9446e0d1eb1;hpb=659ed7eef85b6bfe9a30ea09f90b769f21c0204f;p=ndwebbie.git diff --git a/ND.pm b/ND.pm index dd017f3..3c053b8 100755 --- a/ND.pm +++ b/ND.pm @@ -52,7 +52,7 @@ sub handler { if ($ENV{'SCRIPT_NAME'} =~ /(\w+)(\.(pl|php|pm))?$/){ $ND::PAGE = $1 unless $1 eq 'index' and $3 eq 'pl'; } - $ND::PAGE = 'main' unless exists $PAGES{$ND::PAGE}; + $ND::PAGE = 'main' unless (defined $ND::PAGE and exists $PAGES{$ND::PAGE}); $PAGES{$ND::PAGE}->{parse}->($ENV{REQUEST_URI});