Skip to:
Content

BuddyPress.org

Ticket #6268: 6268.02.patch

File 6268.02.patch, 584 bytes (added by imath, 9 years ago)
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index bbf5c3b..95d0cf7 100644
    function bp_has_activities( $args = '' ) { 
    622622                : false;
    623623
    624624        // Group filtering
    625         if ( groups_get_current_group() ) {
     625        if ( bp_is_group() ) {
    626626                $object      = $bp->groups->id;
    627627                $primary_id  = bp_get_current_group_id();
    628628                $show_hidden = (bool) ( groups_is_user_member( bp_loggedin_user_id(), $primary_id ) || bp_current_user_can( 'bp_moderate' ) );