Skip to:
Content

BuddyPress.org

Changeset 6389


Ignore:
Timestamp:
10/08/2012 04:44:30 AM (14 years ago)
Author:
r-a-y
Message:

Fix notice during avatar step in groups_action_create_group().

  • Addresses issues with the group avatar cropper failing during the group creation process.
  • Fixes #4578.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-actions.php

    r6342 r6389  
    174174        // Group avatar is handled separately
    175175        if ( 'group-avatar' == bp_get_groups_current_create_step() && isset( $_POST['upload'] ) ) {
     176                if ( ! isset( $bp->avatar_admin ) ) {
     177                        $bp->avatar_admin = new stdClass();
     178                }
     179
    176180                if ( !empty( $_FILES ) && isset( $_POST['upload'] ) ) {
    177181                        // Normally we would check a nonce here, but the group save nonce is used instead
Note: See TracChangeset for help on using the changeset viewer.