diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2026-01-03 17:07:11 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2026-01-03 17:07:11 +0100 |
| commit | b9e67e40e07be9f1bcfa1e30e36f07cb9f9f85ca (patch) | |
| tree | bb5bbfe4ab4b50b21d81e9bc8efd923e8d354e98 | |
| parent | 76db68fc84b3764f01bf312cb408fdcf012ca8ec (diff) | |
Formation: Another uninitialized value fix
| -rw-r--r-- | lib/Travel/Status/DE/DBRIS/Formation.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DBRIS/Formation.pm b/lib/Travel/Status/DE/DBRIS/Formation.pm index 2027462..03903cd 100644 --- a/lib/Travel/Status/DE/DBRIS/Formation.pm +++ b/lib/Travel/Status/DE/DBRIS/Formation.pm @@ -112,7 +112,8 @@ sub parse_carriages { push( @numbers, $group_obj->train_no ); } - @groups = sort { $a->start_percent <=> $b->start_percent } @groups; + @groups = sort { ( $a->start_percent // 0 ) <=> ( $b->start_percent // 0 ) } + @groups; @numbers = uniq @numbers; $self->{train_numbers} = \@numbers; |
