Skip to:
Content

BuddyPress.org

Ticket #4335: 4335.01.patch

File 4335.01.patch, 754 bytes (added by DJPaul, 13 years ago)
  • bp-themes/bp-default/functions.php

    function bp_dtheme_activity_secondary_avatars( $action, $activity ) { 
    545545                case 'groups' :
    546546                case 'friends' :
    547547                        // Only insert avatar if one exists
    548                         if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) {
     548                        if ( bp_is_active( $activity->component ) && $secondary_avatar = bp_get_activity_secondary_avatar() ) {
    549549                                $reverse_content = strrev( $action );
    550550                                $position        = strpos( $reverse_content, 'a<' );
    551551                                $action          = substr_replace( $action, $secondary_avatar, -$position - 2, 0 );