Changeset 5699 for trunk/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 02/11/2012 02:14:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-screens.php
r5418 r5699 1 1 <?php 2 /******************************************************************************* 2 3 /** 4 * BuddyPress XProfile Screens 5 * 3 6 * Screen functions are the controllers of BuddyPress. They will execute when 4 7 * their specific URL is caught. They will first save or manipulate data using 5 8 * business functions, then pass on the user to a template file. 9 * 10 * @package BuddyPress 11 * @subpackage XProfileScreens 6 12 */ 7 13 … … 46 52 } 47 53 54 // No errors 55 $errors = false; 56 48 57 // Check to see if any new information has been submitted 49 58 if ( isset( $_POST['field_ids'] ) ) { … … 77 86 78 87 $is_required[$field_id] = xprofile_check_is_required_field( $field_id ); 79 if ( $is_required[$field_id] && empty( $_POST['field_' . $field_id] ) ) 88 if ( $is_required[$field_id] && empty( $_POST['field_' . $field_id] ) ) { 80 89 $errors = true; 90 } 81 91 } 82 92 … … 87 97 // No errors 88 98 } else { 99 89 100 // Reset the errors var 90 101 $errors = false; … … 108 119 109 120 // Set the feedback messages 110 if ( $errors)121 if ( !empty( $errors ) ) 111 122 bp_core_add_message( __( 'There was a problem updating some of your profile information, please try again.', 'buddypress' ), 'error' ); 112 123 else
Note: See TracChangeset
for help on using the changeset viewer.