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 ) { ?>