Skip to content
Snippets Groups Projects
Commit afbdc72d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

DeutscheBahn.pm: Fix results initialization

parent 03ffb489
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,6 @@ sub new { ...@@ -46,7 +46,6 @@ sub new {
start => 'Suchen', start => 'Suchen',
boardType => $conf{mode} // 'dep', boardType => $conf{mode} // 'dep',
}, },
results => [],
}; };
for my $i ( 0 .. @{ $ref->{mot_filter} } ) { for my $i ( 0 .. @{ $ref->{mot_filter} } ) {
...@@ -129,6 +128,8 @@ sub results { ...@@ -129,6 +128,8 @@ sub results {
return; return;
} }
$self->{results} = [];
for my $tr ( @{ $self->{tree}->findnodes($xp_element) } ) { for my $tr ( @{ $self->{tree}->findnodes($xp_element) } ) {
my ($n_time) = $tr->findnodes($xp_time); my ($n_time) = $tr->findnodes($xp_time);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment