Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/26/2011 09:06:26 PM (14 years ago)
Author:
djpaul
Message:

Fix group creation problem

File:
1 edited

Legend:

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

    r4844 r4872  
    3030
    3131    // If no current step is set, reset everything so we can start a fresh group creation
    32     if ( !bp_action_variable( 1 ) ) {
    33 
     32    $bp->groups->current_create_step = bp_action_variable( 1 );
     33    if ( !$bp->groups->current_create_step ) {
    3434        unset( $bp->groups->current_create_step );
    3535        unset( $bp->groups->completed_create_steps );
     
    4343
    4444    // If this is a creation step that is not recognized, just redirect them back to the first screen
    45     if ( $step = bp_action_variable( 1 ) && !$bp->groups->group_creation_steps[$step] ) {
     45    if ( !empty( $bp->groups->current_create_step ) && empty( $bp->groups->group_creation_steps[$bp->groups->current_create_step] ) ) {
    4646        bp_core_add_message( __('There was an error saving group details. Please try again.', 'buddypress'), 'error' );
    4747        bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/' );
Note: See TracChangeset for help on using the changeset viewer.