From f7a9213961f02637b83b56ff0c7d72b16daa427d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 22 May 2024 19:20:39 +0200 Subject: [PATCH] add_route_timestamps: IRIS route may be shorter than HAFAS route --- lib/Travelynx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 09833d6..85eed6d 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1276,7 +1276,7 @@ sub startup { my $new_eva = $new_route->[$i]->{eva}; my $new_entry = $new_route->[$i]; - if ( $old_name eq $new_name ) { + if ( defined $old_name and $old_name eq $new_name ) { if ( $old_entry->{rt_arr} and not $new_entry->{rt_arr} ) {