Ticket #3572: 3572.01.diff
| File 3572.01.diff, 2.5 KB (added by , 15 years ago) |
|---|
-
bp-groups/bp-groups-classes.php
Class BP_Groups_Member { 869 869 function get_recently_joined( $user_id, $limit = false, $page = false, $filter = false ) { 870 870 global $wpdb, $bp; 871 871 872 $pag_sql = $hidden_sql = $filter_sql = '';873 874 872 if ( $limit && $page ) 875 873 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 876 874 … … Class BP_Groups_Member { 891 889 function get_is_admin_of( $user_id, $limit = false, $page = false, $filter = false ) { 892 890 global $wpdb, $bp; 893 891 894 $pag_sql = $hidden_sql = $filter_sql = '';895 896 892 if ( $limit && $page ) 897 893 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 898 894 … … Class BP_Groups_Member { 913 909 function get_is_mod_of( $user_id, $limit = false, $page = false, $filter = false ) { 914 910 global $wpdb, $bp; 915 911 916 $pag_sql = $hidden_sql = $filter_sql = '';917 918 912 if ( $limit && $page ) 919 913 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 920 914 -
bp-groups/bp-groups-functions.php
function groups_send_invites( $user_id, $group_id ) { 649 649 $member->save(); 650 650 } 651 651 652 do_action( 'groups_send_invites', $ group_id, $invited_users );652 do_action( 'groups_send_invites', $bp->groups->current_group->id, $invited_users ); 653 653 } 654 654 655 655 function groups_get_invites_for_group( $user_id, $group_id ) { -
bp-xprofile/bp-xprofile-classes.php
Class BP_XProfile_Group { 174 174 175 175 // Loop through the results and find the fields that have data. 176 176 foreach( (array)$field_data as $data ) { 177 if ( false !== $key = array_search( $data->field_id, $field_ids ) ) { 177 // Empty fields may contain a serialized empty array 178 $maybe_value = maybe_unserialize( $data->value ); 179 if ( !empty( $maybe_value ) && false !== $key = array_search( $data->field_id, $field_ids ) ) { 178 180 // Fields that have data get removed from the list 179 181 unset( $field_ids[$key] ); 180 182 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)