remove brackets from conditions that are not needed

This commit is contained in:
Milan
2020-03-07 23:18:42 +01:00
parent 4584125923
commit ea9590f6dc
13 changed files with 23 additions and 25 deletions

View File

@@ -426,12 +426,12 @@ sub search_events ($$$) {
template => 'no'
};
if ( defined $options ) {
$params->{from_date} = $options->{from_date} if ( defined $options->{from_date} );
$params->{till_date} = $options->{till_date} if ( defined $options->{till_date} );
$params->{location} = $options->{location} if ( defined $options->{location} );
$params->{limit} = $options->{limit} if ( defined $options->{limit} );
$params->{archive} = $options->{archive} if ( defined $options->{archive} );
$params->{get} = $options->{get} if ( defined $options->{get} );
$params->{from_date} = $options->{from_date} if defined $options->{from_date};
$params->{till_date} = $options->{till_date} if defined $options->{till_date};
$params->{location} = $options->{location} if defined $options->{location};
$params->{limit} = $options->{limit} if defined $options->{limit};
$params->{archive} = $options->{archive} if defined $options->{archive};
$params->{get} = $options->{get} if defined $options->{get};
}
my $checked_params = events::check_params( $config, $params );