Skip to:
Content

BuddyPress.org

Ticket #1024: 1024.001.diff

File 1024.001.diff, 491 bytes (added by cnorris23, 14 years ago)
  • bp-xprofile/bp-xprofile-functions.php

     
    221221        if ( !empty( $option_order ) )
    222222                $field->option_order = $option_order;
    223223
    224         if ( !$field->save() )
     224        if ( !$field_id = $field->save() )
    225225                return false;
    226226
    227         return true;
     227        return $field_id;
    228228}
    229229
    230230function xprofile_get_field( $field_id ) {