Error checking, please. If an user profile is updated without profile pic options, then it should not break the admin. Please modify lines 420-427 to be:
if( $_POST['profilepic_displayoptions'] ) :
$raw_data = $_POST['profilepic_displayoptions'];
$reversed_data = array();
foreach ($raw_data as $key => $val) {
$reversed_data[$val] = $key;
}
profilepic_internal_storeuserdisplaysettings($reversed_data, 'profilepic_displayoptions_'.$profile_id, $filename);
endif;
Thanks. :)