summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-27 12:57:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-27 12:57:22 +0100
commitbcbba5f514655cc7ec28a6413f6c2926e8b8d270 (patch)
tree8895d9526ce4a363466bb75a8bd550accc855631 /index.pl
parent197cb64451b64397d5853f3dbe2b2f49b10daed5 (diff)
Fix uninitialized value warning
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' );