summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-11 01:03:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-11 01:03:29 +0200
commit03ffb489131c73cb7b50867c81cc178ad1a89827 (patch)
tree15468ee77c4a4617fe641aa1cff8e06da08f51e4 /lib
parent8bf91ac1df285fb11bdc6b8322b0f3a534fab834 (diff)
DeutscheBahn.pm: results: Do not die if no results were found
This usually happens when an invalid station name was specified
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm
index 10b1c53..fd7fc35 100644
--- a/lib/Travel/Status/DE/DeutscheBahn.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn.pm
@@ -46,6 +46,7 @@ sub new {
start => 'Suchen',
boardType => $conf{mode} // 'dep',
},
+ results => [],
};
for my $i ( 0 .. @{ $ref->{mot_filter} } ) {