diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-11 01:03:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-11 01:03:29 +0200 |
commit | 03ffb489131c73cb7b50867c81cc178ad1a89827 (patch) | |
tree | 15468ee77c4a4617fe641aa1cff8e06da08f51e4 /lib/Travel/Status/DE | |
parent | 8bf91ac1df285fb11bdc6b8322b0f3a534fab834 (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/Travel/Status/DE')
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 1 |
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} } ) { |