Skip to:
Content

BuddyPress.org

Changeset 5639


Ignore:
Timestamp:
01/18/2012 07:01:37 AM (13 years ago)
Author:
djpaul
Message:

Fix PHP Notice when viewing activity comments with xprofile disabled. Fixes #3921, props lancehudson for initial patch.

File:
1 edited

Legend:

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

    r5512 r5639  
    15571557        global $activities_template;
    15581558
    1559         $name = apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment ); // backward compatibility
     1559        if ( isset( $activities_template->activity->current_comment->user_fullname ) )
     1560            $name = apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment );  // backward compatibility
     1561        else
     1562            $name = $activities_template->activity->current_comment->display_name;
    15601563
    15611564        return apply_filters( 'bp_activity_comment_name', $name );
Note: See TracChangeset for help on using the changeset viewer.