diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 00:06:57 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 00:06:57 +0200 |
commit | afbdc72dbdc5afc4acf677efc41ec6065f6f61c0 (patch) | |
tree | e2b3eb43cda910c3232604100fd34706433657f0 /lib/Travel/Status/DE | |
parent | 03ffb489131c73cb7b50867c81cc178ad1a89827 (diff) |
DeutscheBahn.pm: Fix results initialization
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index fd7fc35..ae541ce 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -46,7 +46,6 @@ sub new { start => 'Suchen', boardType => $conf{mode} // 'dep', }, - results => [], }; for my $i ( 0 .. @{ $ref->{mot_filter} } ) { @@ -129,6 +128,8 @@ sub results { return; } + $self->{results} = []; + for my $tr ( @{ $self->{tree}->findnodes($xp_element) } ) { my ($n_time) = $tr->findnodes($xp_time); |