Send empty array first
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 14 Apr 2017 20:47:58 +0000 (16:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 14 Apr 2017 20:47:58 +0000 (16:47 -0400)
This is so it can append to the array.

models/front/members/list.php

index 2019601..cf4a2e3 100644 (file)
@@ -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 '<pre>$where: ' . print_r( $where, true ) . '</pre>';
             $whereSep = ' AND ';
         }