Skip to:
Content

BuddyPress.org

Ticket #8503: 8503.1.patch

File 8503.1.patch, 504 bytes (added by johnjamesjacoby, 5 years ago)

Cast results of bp_get_user_meta() to array

  • src/bp-xprofile/bp-xprofile-functions.php

     
    13021302                $levels = (array)$levels;
    13031303        }
    13041304
    1305         $user_visibility_levels = bp_get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true );
     1305        $user_visibility_levels = (array) bp_get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true );
    13061306
    13071307        // Parse the user-provided visibility levels with the default levels, which may take
    13081308        // precedence.