Changeset 4872 for trunk/bp-groups/bp-groups-actions.php
- Timestamp:
- 07/26/2011 09:06:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r4844 r4872 30 30 31 31 // 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 ) { 34 34 unset( $bp->groups->current_create_step ); 35 35 unset( $bp->groups->completed_create_steps ); … … 43 43 44 44 // 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] ) ) { 46 46 bp_core_add_message( __('There was an error saving group details. Please try again.', 'buddypress'), 'error' ); 47 47 bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/' );
Note: See TracChangeset
for help on using the changeset viewer.