Skip to:
Content

BuddyPress.org

Ticket #4362: 4362.01.patch

File 4362.01.patch, 508 bytes (added by DJPaul, 14 years ago)
  • bp-xprofile/bp-xprofile-classes.php

    class BP_XProfile_Group {  
    175175                if ( empty( $fields ) )
    176176                        return $groups;
    177177
    178                 if ( !empty( $fetch_field_data ) ) {
     178                if ( ! empty( $fetch_field_data ) && ! empty( $user_id ) ) {
    179179
    180180                        // Fetch the field data for the user.
    181181                        foreach( (array) $fields as $field ) {