Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2010 12:20:02 AM (14 years ago)
Author:
djpaul
Message:

Fixes even more WP_DEBUG warnings.

File:
1 edited

Legend:

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

    r3365 r3369  
    445445
    446446        // If this is a user object pass the users' email address for Gravatar so we don't have to refetch it.
    447         if ( 'user' == $object && empty( $email ) )
     447        if ( 'user' == $object && empty( $email ) && isset( $activities_template->activity->user_email ) )
    448448            $email = $activities_template->activity->user_email;
    449449
     
    656656                return false;
    657657
    658             $content .= '<ul>';
     658            $content = '<ul>';
    659659            foreach ( (array)$comment->children as $comment ) {
    660660                if ( !$comment->user_fullname )
     
    999999        global $bp;
    10001000
     1001        $link = '';
     1002
    10011003        if ( $bp->current_component == $bp->profile->slug || 'just-me' == $bp->current_action )
    10021004            $link = $bp->displayed_user->domain . $bp->activity->slug . '/feed/';
    1003         else if ( $bp->friends->slug == $bp->current_action )
     1005        elseif ( $bp->friends->slug == $bp->current_action )
    10041006            $link = $bp->displayed_user->domain . $bp->activity->slug . '/' . $bp->friends->slug . '/feed/';
    1005         else if ( $bp->groups->slug == $bp->current_action )
     1007        elseif ( $bp->groups->slug == $bp->current_action )
    10061008            $link = $bp->displayed_user->domain . $bp->activity->slug . '/' . $bp->groups->slug . '/feed/';
    1007         else if ( 'favorites' == $bp->current_action )
     1009        elseif ( 'favorites' == $bp->current_action )
    10081010            $link = $bp->displayed_user->domain . $bp->activity->slug . '/favorites/feed/';
    1009         else if ( 'mentions' == $bp->current_action )
     1011        elseif ( 'mentions' == $bp->current_action )
    10101012            $link = $bp->displayed_user->domain . $bp->activity->slug . '/mentions/feed/';
    10111013
Note: See TracChangeset for help on using the changeset viewer.