summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index f2dca8c..079c8c9 100644
--- a/index.pl
+++ b/index.pl
@@ -344,7 +344,7 @@ sub handle_request {
$self->stash( title => 'db-infoscreen' );
$self->stash( version => $VERSION );
- if ( $station =~ s{ [.] txt $ }{}x ) {
+ if ( defined $station and $station =~ s{ [.] txt $ }{}x ) {
$template = 'text';
$self->param( station => $station );
$self->stash( layout => 'text' );