Unverified Commit dd1f3964 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas-m: handle undefined operators during product name changes

parent 121dcf01
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -528,8 +528,13 @@ elsif ( $opt{journey} ) {
		if ( @prods > 1 ) {
			my $prod = $stop->prod_dep // $stop->prod_arr;
			if ( $prod and $prod != $prev_prod ) {
				if ( $prod->operator ) {
					$prod_line
					  = sprintf( " %s (%s)", $prod->name, $prod->operator );
				}
				else {
					$prod_line = q{ } . $prod->name;
				}
				$prev_prod = $prod;
			}
		}