summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-24 08:58:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-24 08:59:50 +0200
commitc1edc66f2c9951f9075f91c209ccf51b7ab319ee (patch)
tree4c15474468fe11df3d291426d9d74e792306557a /lib
parent1a5037db51400c8fdd0cd9210df1310ca757371e (diff)
Add --date/--time to db-ris, accept empty info in lib
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 55b82dd..32c017d 100644
--- a/lib/Travel/Status/DE/DeutscheBahn.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn.pm
@@ -105,7 +105,7 @@ sub departures {
my $route = $n_route->textContent();
my $dest = $n_dest->textContent();
my $platform = $n_platform->textContent();
- my $info = $n_info->textContent();
+ my $info = $n_info ? $n_info->textContent() : q{};
my @via;
for my $str ( $time, $train, $dest, $platform, $info ) {