diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-29 11:15:25 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-29 11:15:34 +0100 |
commit | 5c9127df3d10d3a3bd420341c20498ac545ca23e (patch) | |
tree | c10decca2f3f51e2147fd77ea2f5675454013bb6 | |
parent | b60e5eef740af4954313d22eca17983d34774d32 (diff) |
hafas-m: handle undefined occupancy data
-rwxr-xr-x | bin/hafas | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -217,6 +217,9 @@ sub show_similar_stops { sub display_occupancy { my ($occupancy) = @_; + if (not defined $occupancy) { + return q{?}; + } if ( $occupancy == 1 ) { return q{.}; } |