Skip to:
Content

BuddyPress.org

Changeset 4905


Ignore:
Timestamp:
07/30/2011 12:03:52 PM (13 years ago)
Author:
boonebgorges
Message:

Set user_id and field_id properties in BP_XProfile_ProfileData::populate() when now row is found, to allow class to be properly instantiated in all cases. Fixes #2586. Props smurkas

File:
1 edited

Legend:

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

    r4869 r4905  
    815815            $this->value        = stripslashes( $profiledata->value );
    816816            $this->last_updated = $profiledata->last_updated;
     817        } else {
     818            // When no row is found, we'll need to set these properties manually
     819            $this->field_id     = $field_id;
     820            $this->user_id      = $user_id;
    817821        }
    818822    }
Note: See TracChangeset for help on using the changeset viewer.