From c2c7a7bb0f8f6fe94f4c71f0400ac1e5fa6a8e02 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Sat, 28 Jan 2023 15:44:41 +0100 Subject: [PATCH] initilized array so no error in loop --- includes/custom-field-ajuts-filter-function-frontend.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/custom-field-ajuts-filter-function-frontend.php b/includes/custom-field-ajuts-filter-function-frontend.php index 326549d..e9b7d84 100644 --- a/includes/custom-field-ajuts-filter-function-frontend.php +++ b/includes/custom-field-ajuts-filter-function-frontend.php @@ -46,8 +46,9 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) { // check for values in url and get value if available if( isset($_GET[ $fieldname ]) ) { - $filteredvalues['value'] = explode(',', $_GET[ $fieldname ]); + } else { + $filteredvalues['value'] = []; }; //end check for values in url @@ -60,7 +61,7 @@ if( ! function_exists( 'ofisuport_ajuts_filters_form') ) { $choicelabel ) { ?>
- value="" /> + value="" />