diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-09 12:20:06 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-09 12:20:06 +0200 |
commit | ba79f62f67d294cb4ad42e86e18673238eee4a34 (patch) | |
tree | ec2606f7a805e6cb9f26256a010e2a03db75c15c /lib/Travelynx/Model | |
parent | 8597cfa644e50ca3dec82065fe13ef1efc926c7b (diff) |
get_connection_targets: always return a list2.8.13
Closes #152
Closes #153
Diffstat (limited to 'lib/Travelynx/Model')
-rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index eca5167..031b0b1 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -1771,7 +1771,10 @@ sub get_connection_targets { my $dest_id = $opt{eva}; if ( $opt{destination_name} ) { - return [ { eva => $opt{eva}, name => $opt{destination_name} } ]; + return { + eva => $opt{eva}, + name => $opt{destination_name} + }; } my $backend_id = $opt{backend_id}; @@ -1781,7 +1784,7 @@ sub get_connection_targets { } if ( not $dest_id ) { - return []; + return; } my $dest_ids = [ |