} else {
$image_data = apply_filters('member_images',$memberID,true);
}
- if (empty($image_data)) {
+ if (empty($image_data) || is_numeric($image_data)) {
echo ' style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "';
} else {
echo ' style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "';