Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2011 07:22:30 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Since bp->groups->current_group is now set at run-time as 0, check if empty instead

File:
1 edited

Legend:

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

    r3660 r3875  
    6666
    6767    /* Only filter the forum SQL on group pages or on the forums directory */
    68     if ( ( isset( $bp->groups->current_group ) && 'public' == $bp->groups->current_group->status ) || ( !isset( $bp->groups->current_group ) || !$bp->groups->current_group ) ) {
     68    if ( ( !empty( $bp->groups->current_group ) && 'public' == $bp->groups->current_group->status ) ) {
    6969        add_filter( 'get_topics_fields', 'groups_add_forum_fields_sql' );
    7070        add_filter( 'get_topics_index_hint', 'groups_add_forum_tables_sql' );
Note: See TracChangeset for help on using the changeset viewer.