Handle undefined user data in conncetion suggestion with no previous journey
Closes #30
This commit is contained in:
parent
f2f58ab507
commit
fe6340abeb
1 changed files with 4 additions and 1 deletions
|
@ -2397,7 +2397,9 @@ sub startup {
|
||||||
$eva = $status->{arr_eva};
|
$eva = $status->{arr_eva};
|
||||||
$exclude_via = $status->{dep_name};
|
$exclude_via = $status->{dep_name};
|
||||||
$exclude_train_id = $status->{train_id};
|
$exclude_train_id = $status->{train_id};
|
||||||
$exclude_before = $status->{real_arrival}->epoch;
|
if ( $status->{real_arrival} ) {
|
||||||
|
$exclude_before = $status->{real_arrival}->epoch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2431,6 +2433,7 @@ sub startup {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ( $exclude_before
|
if ( $exclude_before
|
||||||
|
and $train->departure
|
||||||
and $train->departure->epoch < $exclude_before )
|
and $train->departure->epoch < $exclude_before )
|
||||||
{
|
{
|
||||||
next;
|
next;
|
||||||
|
|
Loading…
Reference in a new issue