Changeset 4844 for trunk/bp-groups/bp-groups-actions.php
- Timestamp:
- 07/25/2011 12:01:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r4823 r4844 30 30 31 31 // If no current step is set, reset everything so we can start a fresh group creation 32 if ( ! isset( $bp->action_variables[1] ) || !$bp->groups->current_create_step = $bp->action_variables[1]) {32 if ( !bp_action_variable( 1 ) ) { 33 33 34 34 unset( $bp->groups->current_create_step ); … … 43 43 44 44 // If this is a creation step that is not recognized, just redirect them back to the first screen 45 if ( $ bp->action_variables[1] && !$bp->groups->group_creation_steps[$bp->action_variables[1]] ) {45 if ( $step = bp_action_variable( 1 ) && !$bp->groups->group_creation_steps[$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.