Changeset 3991 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 02/02/2011 01:51:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r3985 r3991 363 363 364 364 if ( !$comments = wp_cache_get( 'bp_activity_comments_' . $activity_id ) ) { 365 // Select the user's fullname with the query so we don't have to 366 // fetch it for each comment 365 // Select the user's fullname with the query 367 366 if ( bp_is_active( 'xprofile' ) ) { 368 367 $fullname_select = ", pd.value as user_fullname"; 369 368 $fullname_from = ", {$bp->profile->table_name_data} pd "; 370 369 $fullname_where = "AND pd.user_id = a.user_id AND pd.field_id = 1"; 370 371 // Prevent debug errors 372 } else { 373 $fullname_select = $fullname_from = $fullname_where = ''; 371 374 } 372 375
Note: See TracChangeset
for help on using the changeset viewer.