Skip to:
Content

BuddyPress.org

Changeset 6187


Ignore:
Timestamp:
07/18/2012 07:14:45 PM (14 years ago)
Author:
djpaul
Message:

Don't try to fetch profile data for user_id=0. Fixes #4362.

  • This fixes a problem where a (deleted) user's profile information was being shown on the registration template.
  • We still need to investigate why profile data record gets orphaned like this.
File:
1 edited

Legend:

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

    r6174 r6187  
    176176            return $groups;
    177177
    178         if ( !empty( $fetch_field_data ) ) {
     178        if ( ! empty( $fetch_field_data ) && ! empty( $user_id ) ) {
    179179
    180180            // Fetch the field data for the user.
Note: See TracChangeset for help on using the changeset viewer.