From: Steve Sutton Date: Fri, 14 Apr 2017 20:47:58 +0000 (-0400) Subject: Send empty array first X-Git-Tag: v2.9.15^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3469646b6bef2fd41b5d4141b45e21c8f40fc490;p=WP-Plugins%2Fglm-member-db.git Send empty array first This is so it can append to the array. --- diff --git a/models/front/members/list.php b/models/front/members/list.php index 20196012..cf4a2e33 100644 --- a/models/front/members/list.php +++ b/models/front/members/list.php @@ -631,9 +631,10 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo } // if doing amenity search $amenityData = ( is_array( $amenityData ) ) ? array_filter( $amenityData ) : array(); - $whereParts = apply_filters('glm-member-db-front-search-query', $where); + $whereParts = apply_filters('glm-member-db-front-search-query', array()); if ( is_array( $whereParts ) && count( $whereParts ) > 0 ) { $where .= $whereSep.implode(" AND ", $whereParts); + echo '
$where: ' . print_r( $where, true ) . '
'; $whereSep = ' AND '; }