From 40a308971dd32d9b7468ae3c2ef313e636f888e9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 15 Aug 2011 12:16:53 +0200 Subject: DeutscheBahn.pm: The RIS does not always report platforms --- lib/Travel/Status/DE/DeutscheBahn.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index ae541ce..9cda933 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -148,7 +148,7 @@ sub results { my $train = $n_train->textContent(); my $route = $n_route->textContent(); my $dest = $n_dest->textContent(); - my $platform = $n_platform->textContent(); + my $platform = $n_platform ? $n_platform->textContent() : q{}; my $info = $n_info ? $n_info->textContent() : q{}; my @via; -- cgit v1.2.3