Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2011 01:51:18 AM (13 years ago)
Author:
johnjamesjacoby
Message:

bp-active-components clean-up surrounding the XProfile component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r3985 r3991  
    363363
    364364        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
    367366            if ( bp_is_active( 'xprofile' ) ) {
    368367                $fullname_select = ", pd.value as user_fullname";
    369368                $fullname_from = ", {$bp->profile->table_name_data} pd ";
    370369                $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 = '';
    371374            }
    372375
Note: See TracChangeset for help on using the changeset viewer.