Unverified Commit 5c9127df authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas-m: handle undefined occupancy data

parent b60e5eef
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -217,6 +217,9 @@ sub show_similar_stops {
sub display_occupancy {
	my ($occupancy) = @_;

	if (not defined $occupancy) {
		return q{?};
	}
	if ( $occupancy == 1 ) {
		return q{.};
	}