Changeset 2919 for trunk/bp-forums.php
- Timestamp:
- 04/13/2010 04:01:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2863 r2919 356 356 357 357 /* Fetch fullname for the topic's last poster */ 358 if ( function_exists( 'xprofile_install' ) ) {358 if ( bp_is_active( 'xprofile' ) ) { 359 359 $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT t.topic_id, pd.value FROM {$bp->profile->table_name_data} pd, {$bbdb->topics} t WHERE pd.user_id = t.topic_last_poster AND pd.field_id = 1 AND t.topic_id IN ( {$topic_ids} )" ) ); 360 360 for ( $i = 0; $i < count( $topics ); $i++ ) { … … 474 474 475 475 /* Fetch fullname for each poster. */ 476 if ( function_exists( 'xprofile_install' ) ) {476 if ( bp_is_active( 'xprofile' ) ) { 477 477 $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT pd.user_id, pd.value FROM {$bp->profile->table_name_data} pd WHERE pd.user_id IN ( {$user_ids} )" ) ); 478 478 for ( $i = 0; $i < count( $posts ); $i++ ) {
Note: See TracChangeset
for help on using the changeset viewer.