diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
index 2ba68eaf8..243a77660 100644
|
|
|
function bp_xprofile_get_fields_by_visibility_levels( $user_id, $levels = array(
|
| 1284 | 1284 | } |
| 1285 | 1285 | |
| 1286 | 1286 | $user_visibility_levels = bp_get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true ); |
| | 1287 | if ( ! is_array( $user_visibility_levels ) ) { |
| | 1288 | $user_visibility_levels = array(); |
| | 1289 | } |
| 1287 | 1290 | |
| 1288 | 1291 | // Parse the user-provided visibility levels with the default levels, which may take |
| 1289 | 1292 | // precedence. |