Unverified Commit 60deca18 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris: handle pseudo-trains withuot occupancy

Recent example: "Alternativen Bahnhof beachten!"
parent 7133dd21
Loading
Loading
Loading
Loading
+4 −0
Changes for bin/dbris: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -296,6 +296,10 @@ sub display_occupancy {
sub format_occupancy {
	my ($stop) = @_;

	if (not $stop) {
		return q{  };
	}

	return display_occupancy( $stop->occupancy_first )
	  . display_occupancy( $stop->occupancy_second );
}