Changeset 4506 for trunk/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 06/13/2011 09:54:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-screens.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-screens.php
r4046 r4506 13 13 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 14 14 */ 15 function xprofile_screen_display_profile() { 15 function xprofile_screen_display_profile() { 16 16 $new = isset( $_GET['new'] ) ? $_GET['new'] : ''; 17 17 … … 39 39 40 40 // Check the field group exists 41 if ( !xprofile_get_field_group( $bp->action_variables[1] ) ) 42 bp_core_redirect( bp_get_root_domain() ); 41 if ( ( !empty( $bp->action_variables[0] ) && 'group' != $bp->action_variables[0] ) || !xprofile_get_field_group( $bp->action_variables[1] ) ) { 42 bp_do_404(); 43 return; 44 } 43 45 44 46 // Check to see if any new information has been submitted … … 133 135 return false; 134 136 137 if ( !empty( $bp->action_variables ) ) { 138 bp_do_404(); 139 return; 140 } 141 135 142 $bp->avatar_admin->step = 'upload-image'; 136 143
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)