Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2010 10:44:26 AM (15 years ago)
Author:
apeatling
Message:

Fixes #1777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-notifications.php

    r2537 r2556  
    77    $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . __( 'Group Details Updated', 'buddypress' );
    88
    9     foreach ( $group->user_dataset as $user ) {
    10         if ( 'no' == get_usermeta( $user->user_id, 'notification_groups_group_updated' ) ) continue;
    11 
    12         $ud = bp_core_get_core_userdata( $user->user_id );
     9    $user_ids = BP_Groups_Member::get_group_member_ids( $this->id );
     10    foreach ( $user_ids as $user_id ) {
     11        if ( 'no' == get_usermeta( $user_id, 'notification_groups_group_updated' ) ) continue;
     12
     13        $ud = bp_core_get_core_userdata( $user_id );
    1314
    1415        // Set up and send the message
     
    1617
    1718        $group_link = site_url( $bp->groups->slug . '/' . $group->slug );
    18         $settings_link = bp_core_get_user_domain( $user->user_id ) . 'settings/notifications/';
     19        $settings_link = bp_core_get_user_domain( $user_id ) . 'settings/notifications/';
    1920
    2021        $message = sprintf( __(
Note: See TracChangeset for help on using the changeset viewer.