Skip to:
Content

BuddyPress.org

Changeset 2910


Ignore:
Timestamp:
04/09/2010 05:45:01 PM (14 years ago)
Author:
mrmaz
Message:

fixes #2070

File:
1 edited

Legend:

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

    r2822 r2910  
    191191            $display_comments = 'stream';
    192192
    193         if ( $user_id = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->id : $bp->loggedin_user->id ) {
     193        // determine which user_id applies
     194        if ( empty( $user_id ) )
     195            $user_id = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->id : $bp->loggedin_user->id;
     196
     197        // are we displaying user specific activity?
     198        if ( is_numeric( $user_id ) ) {
    194199            $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;
    195200
Note: See TracChangeset for help on using the changeset viewer.