#3159 closed defect (bug) (no action required)
bp_has_members search parameter defaults to all members if no match
Reported by: | jmckenney | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Members | Keywords: | |
Cc: |
Description
I'm trying to search members based upon profile data. bp_has_members has a fantastic search parameter for this ability but when it doesn't match anything, all members are shown. When it does match, it only shows the correct members...
if (bp_has_members(array('search_terms' => $profile_string_var))) {
while ( bp_members() ) {
bp_the_member();
...
Change History (3)
Note: See
TracTickets for help on using
tickets.
This works under normal circumstances. Are there actual search terms in the $profile_string_var when you have this problem, or is that variable empty?