Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/05/2011 03:19:56 PM (13 years ago)
Author:
boonebgorges
Message:

Corrects property names in bp_friends_random_members(). Fixes #3317. Props dgwatkins. Also clears some PHP warnings in the xprofile get_random() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-functions.php

    r4400 r4612  
    291291function xprofile_get_random_profile_data( $user_id, $exclude_fullname = true ) {
    292292    $field_data           = BP_XProfile_ProfileData::get_random( $user_id, $exclude_fullname );
     293   
     294    if ( !$field_data )
     295        return false;
     296   
    293297    $field_data[0]->value = xprofile_format_profile_field( $field_data[0]->type, $field_data[0]->value );
    294298
Note: See TracChangeset for help on using the changeset viewer.