Skip to content

Commit

Permalink
Add an additional case where dates are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 18, 2023
1 parent 33e80f5 commit faafa06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ function mc_get_search_results( $search ) {
$after = apply_filters( 'mc_future_search_results', 15 ); // return only future events, nearest 10.
if ( is_array( $search ) ) {
// If from & to are set, we need to use a date-based event query.
$from = $search['from'];
$to = $search['to'];
$from = mc_checkdate( $search['from'] );
$to = mc_checkdate( $search['to'] );
$category = ( isset( $search['category'] ) ) ? $search['category'] : null;
$ltype = ( isset( $search['ltype'] ) ) ? $search['ltype'] : null;
$lvalue = ( isset( $search['lvalue'] ) ) ? $search['lvalue'] : null;
Expand Down

0 comments on commit faafa06

Please sign in to comment.