summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-15 00:06:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-15 00:06:57 +0200
commitafbdc72dbdc5afc4acf677efc41ec6065f6f61c0 (patch)
treee2b3eb43cda910c3232604100fd34706433657f0 /lib
parent03ffb489131c73cb7b50867c81cc178ad1a89827 (diff)
DeutscheBahn.pm: Fix results initialization
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm3
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);