From 03ffb489131c73cb7b50867c81cc178ad1a89827 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 11 Aug 2011 01:03:29 +0200 Subject: DeutscheBahn.pm: results: Do not die if no results were found This usually happens when an invalid station name was specified --- lib/Travel/Status/DE/DeutscheBahn.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Travel/Status') 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} } ) { -- cgit v1.2.3