From 10c09a40f10b51bb000c220414d278ff0a2fbbca Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Mon, 24 Jun 2024 13:25:56 -0400 Subject: [PATCH] Fixes fatal when there is no date queries selected --- includes/Traits/Date_Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Traits/Date_Query.php b/includes/Traits/Date_Query.php index 9bd185f..196d502 100644 --- a/includes/Traits/Date_Query.php +++ b/includes/Traits/Date_Query.php @@ -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 ) {