summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-04-24 17:44:13 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-04-24 17:44:13 +0200
commit0a9941562a7b9612cf9bced5a689b2456617975d (patch)
treee988f67e374601968ae79e22dfb74d6a9a281941
parent96f17f475f27feaeec13067990c8da9e9203190a (diff)
Stationboard: Fix uninitialize value warning
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 9657bc0..dde0d0e 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1134,7 +1134,10 @@ sub train_details {
}
my $service = 'DB';
- if ( $hafas ne '1' and Travel::Status::DE::HAFAS::get_service($hafas) ) {
+ if ( $hafas
+ and $hafas ne '1'
+ and Travel::Status::DE::HAFAS::get_service($hafas) )
+ {
$opt{service} = $hafas;
}