Commit a2956871 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

fix uninitialized value warning when handling odd trains (trains without type)

parent aa7a7db2
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2302,8 +2302,11 @@ sub startup {
					{

       # Drunken API, sail with care. Both date formats are used interchangeably
						if (   $suggestion->{depDate} eq $date_yy
						if (
							$suggestion->{depDate}
							and (  $suggestion->{depDate} eq $date_yy
								or $suggestion->{depDate} eq $date_yyyy )
						  )
						{
            # Train numbers are not unique, e.g. IC 149 refers both to the
            # InterCity service Amsterdam -> Berlin and to the InterCity service