Skip to:
Content

BuddyPress.org

Ticket #5300: 5300.3.patch

File 5300.3.patch, 1.0 KB (added by johnjamesjacoby, 12 years ago)

array_keys()

  • bp-notifications/bp-notifications-classes.php

     
    553553                        'user_id'           => false,
    554554                        'item_id'           => false,
    555555                        'secondary_item_id' => false,
    556                         'component_name'    => false,
     556                        'component_name'    => array_keys( buddypress()->active_components ),
    557557                        'component_action'  => false,
    558558                        'is_new'            => true,
    559559                        'search_terms'      => '',
  • bp-notifications/bp-notifications-functions.php

     
    123123        // Setup local variables
    124124        $bp                    = buddypress();
    125125        $notifications         = BP_Notifications_Notification::get( array(
    126                 'user_id'        => $user_id,
    127                 'component_name' => array_keys( $bp->active_components ),
     126                'user_id' => $user_id
    128127        ) );
    129128        $grouped_notifications = array(); // Notification groups
    130129        $renderable            = array(); // Renderable notifications