summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-09 12:20:06 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-09 12:20:06 +0200
commitba79f62f67d294cb4ad42e86e18673238eee4a34 (patch)
treeec2606f7a805e6cb9f26256a010e2a03db75c15c
parent8597cfa644e50ca3dec82065fe13ef1efc926c7b (diff)
get_connection_targets: always return a list2.8.13
Closes #152 Closes #153
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm7
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 = [