Skip to content

Commit

Permalink
Fixes fatal when there is no date queries selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed Jun 24, 2024
1 parent 22a0e14 commit 10c09a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Traits/Date_Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function process_date_query(): void {
$range = $date_query['range'] ?? false;
if ( $date_query && $range && ! empty( $range ) ) {
$date_queries = $this->process_date_range( $range );

} else {
$date_queries = array();
$date_relationship = $date_query['relation'] ?? null;
$date_primary = $date_query['date_primary'] ?? null;
if ( $date_query && $date_relationship && $date_primary ) {
Expand Down

0 comments on commit 10c09a4

Please sign in to comment.