diff --git bp-xprofile/bp-xprofile-functions.php bp-xprofile/bp-xprofile-functions.php
index accdd56..1d7ba24 100644
|
|
|
function bp_xprofile_get_fields_by_visibility_levels( $user_id, $levels = array( |
| 752 | 752 | foreach( (array) $default_visibility_levels as $d_field_id => $defaults ) { |
| 753 | 753 | // If the admin has forbidden custom visibility levels for this field, replace |
| 754 | 754 | // the user-provided setting with the default specified by the admin |
| 755 | | if ( isset( $defaults['allow_custom'] ) && isset( $defaults['default'] ) && 'disabled' == $defaults['allow_custom'] && isset( $user_visibility_levels[$d_field_id] ) ) { |
| | 755 | if ( isset( $defaults['allow_custom'] ) && isset( $defaults['default'] ) && 'disabled' == $defaults['allow_custom'] ) { |
| 756 | 756 | $user_visibility_levels[$d_field_id] = $defaults['default']; |
| 757 | 757 | } |
| 758 | 758 | } |