Changeset 3790 for trunk/bp-forums/bp-forums-loader.php
- Timestamp:
- 01/21/2011 11:03:05 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-loader.php
r3778 r3790 432 432 433 433 // Fetch fullname for the topic's last poster 434 if ( bp_is_active( ' xprofile' ) ) {434 if ( bp_is_active( 'profile' ) ) { 435 435 $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} )" ) ); 436 436 for ( $i = 0; $i < count( $topics ); $i++ ) { … … 550 550 551 551 // Fetch fullname for each poster. 552 if ( bp_is_active( ' xprofile' ) ) {552 if ( bp_is_active( 'profile' ) ) { 553 553 $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} )" ) ); 554 554 for ( $i = 0; $i < count( $posts ); $i++ ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)