summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Journeys.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Model/Journeys.pm')
-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 = [