#3159 closed defect (bug) (no action required)
bp_has_members search parameter defaults to all members if no match
| Reported by: | jmckenney | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Members | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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?