summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/hafas b/bin/hafas
index 33fdca8..5be4f19 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -217,6 +217,9 @@ sub show_similar_stops {
sub display_occupancy {
my ($occupancy) = @_;
+ if (not defined $occupancy) {
+ return q{?};
+ }
if ( $occupancy == 1 ) {
return q{.};
}