From bcbba5f514655cc7ec28a6413f6c2926e8b8d270 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 27 Dec 2017 12:57:22 +0100 Subject: Fix uninitialized value warning --- index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ); -- cgit v1.2.3