Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2008 12:03:53 PM (16 years ago)
Author:
apeatling
Message:

Fixing error feedback when no groups match a search.
Fixed admin access to group editing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r540 r545  
    414414    global $bp;
    415415   
    416     if ( $bp['current_action'] == 'group-finder' )
     416    if ( $bp['current_action'] == 'my-groups' && $_POST['group-filter-box'] == '' )
     417        return true;
     418   
     419    return false;
     420}
     421
     422function bp_group_show_no_results_message() {
     423    global $bp;
     424   
     425    if ( ( $bp['current_action'] == 'my-groups' && $_POST['group-filter-box'] == '' ) || ( $bp['current_action'] == 'group-finder' && $_POST['groupfinder-search-box'] == '' ) )
    417426        return false;
    418427   
    419     return true;
     428    return true;   
    420429}
    421430
     
    9991008        if ( $this->member_count )
    10001009            return true;
    1001        
     1010
    10021011        return false;
    10031012    }
     
    10471056        $groups_template->group = new BP_Groups_Group( $group_id );
    10481057   
    1049 
    10501058    $members_template = new BP_Groups_Group_Members_Template( $groups_template->group->id, $num_per_page, $exclude_admins_mods, $exclude_banned );
    10511059
Note: See TracChangeset for help on using the changeset viewer.