Changeset 2797
- Timestamp:
- 03/02/2010 11:18:53 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2784 r2797 727 727 $field = new BP_XProfile_Field( $field_id ); 728 728 729 /* Check th e value is an acceptable value */729 /* Check that value is acceptable */ 730 730 if ( 'checkbox' == $field->type || 'radio' == $field->type || 'selectbox' == $field->type || 'multiselectbox' == $field->type ) { 731 731 $options = $field->get_children(); 732 733 /* Not required fields can have empty value */ 734 if ( !$is_required ) 735 $possible_values[] = ''; 732 736 733 737 foreach( $options as $option ) … … 740 744 } 741 745 742 if ( empty( $value ) ) 746 /* Field must be required to trigger error */ 747 if ( $is_required && empty( $value ) ) 743 748 return false; 744 749
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)