Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/06/2010 07:04:00 PM (15 years ago)
Author:
djpaul
Message:

Fixes quite a lot more WP_DEBUG warnings.

File:
1 edited

Legend:

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

    r3335 r3365  
    148148    /* Type */
    149149    if ( 'my-groups' == $bp->current_action ) {
    150         if ( 'most-popular' == $order )
     150        if ( 'most-popular' == $order ) {
    151151            $type = 'popular';
    152         else if ( 'alphabetically' == $order )
     152        } elseif ( 'alphabetically' == $order ) {
    153153            $type = 'alphabetical';
    154     } else if ( 'invites' == $bp->current_action ) {
     154        }
     155    } elseif ( 'invites' == $bp->current_action ) {
    155156        $type = 'invites';
    156     } else if ( $bp->groups->current_group->slug ) {
     157    } elseif ( isset( $bp->groups->current_group->slug ) && $bp->groups->current_group->slug ) {
    157158        $type = 'single-group';
    158159        $slug = $bp->groups->current_group->slug;
Note: See TracChangeset for help on using the changeset viewer.