summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-15 12:16:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-15 12:16:53 +0200
commit40a308971dd32d9b7468ae3c2ef313e636f888e9 (patch)
tree589544ec6229c240cd74149350748424796108ae /lib
parentafbdc72dbdc5afc4acf677efc41ec6065f6f61c0 (diff)
DeutscheBahn.pm: The RIS does not always report platforms
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm2
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;