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.pm13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm
index aaaa9be..a811a7c 100755
--- a/lib/Travelynx/Model/Journeys.pm
+++ b/lib/Travelynx/Model/Journeys.pm
@@ -562,18 +562,7 @@ sub get {
if ( $visibility_atoi{ $opt{min_visibility} } ) {
$opt{min_visibility} = $visibility_atoi{ $opt{min_visibility} };
}
- if ( $opt{with_default_visibility} ) {
- $where{visibility} = [
- -or => { '=', undef },
- { '>=', $opt{min_visibility} }
- ];
- }
- else {
- $where{visibility} = [
- -and => { '!=', undef },
- { '>=', $opt{min_visibility} }
- ];
- }
+ $where{effective_visibility} = { '>=', $opt{min_visibility} };
}
my @travels;