diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-27 12:57:22 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-27 12:57:22 +0100 |
commit | bcbba5f514655cc7ec28a6413f6c2926e8b8d270 (patch) | |
tree | 8895d9526ce4a363466bb75a8bd550accc855631 | |
parent | 197cb64451b64397d5853f3dbe2b2f49b10daed5 (diff) |
Fix uninitialized value warning
-rw-r--r-- | index.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' ); |