Commit afbdc72d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

DeutscheBahn.pm: Fix results initialization

parent 03ffb489
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);