diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 12:16:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 12:16:53 +0200 |
commit | 40a308971dd32d9b7468ae3c2ef313e636f888e9 (patch) | |
tree | 589544ec6229c240cd74149350748424796108ae /lib | |
parent | afbdc72dbdc5afc4acf677efc41ec6065f6f61c0 (diff) |
DeutscheBahn.pm: The RIS does not always report platforms
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |