diff options
| author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-04-24 17:44:13 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-04-24 17:44:13 +0200 | 
| commit | 0a9941562a7b9612cf9bced5a689b2456617975d (patch) | |
| tree | e988f67e374601968ae79e22dfb74d6a9a281941 /lib/DBInfoscreen/Controller | |
| parent | 96f17f475f27feaeec13067990c8da9e9203190a (diff) | |
Stationboard: Fix uninitialize value warning
Diffstat (limited to 'lib/DBInfoscreen/Controller')
| -rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 5 | 
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;  	} | 
