Skip to:
Content

BuddyPress.org

Ticket #8093: 8093.diff

File 8093.diff, 624 bytes (added by boonebgorges, 7 months ago)
  • src/bp-xprofile/bp-xprofile-functions.php

    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( 
    12841284        }
    12851285
    12861286        $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        }
    12871290
    12881291        // Parse the user-provided visibility levels with the default levels, which may take
    12891292        // precedence.