summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel')
-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);