diff options
-rw-r--r-- | lib/Travel/Status/DE/DBWagenreihung.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index 0a750b5..6d4f551 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -101,6 +101,9 @@ sub sections { for my $section ( @{ $self->{data}{istformation}{halt}{allSektor} } ) { my $pos = $section->{positionamgleis}; + if ( $pos->{startprozent} eq '' or $pos->{endeprozent} eq '' ) { + next; + } push( @{ $self->{sections} }, Travel::Status::DE::DBWagenreihung::Section->new( |