Conditions | 5 |
Paths | 6 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function userAvatar(array $wpdb_row, WP_REST_Request $request, AttendeeControllerBase $controller) |
||
28 | { |
||
29 | if (is_array($wpdb_row) && isset($wpdb_row['Attendee_Meta.ATT_email'])) { |
||
30 | $email_address = $wpdb_row['Attendee_Meta.ATT_email']; |
||
31 | } |
||
32 | if (empty($email_address)) { |
||
33 | return ''; |
||
34 | } |
||
35 | $avatar = get_avatar_url($email_address); |
||
36 | return $avatar ? $avatar : ''; |
||
37 | } |
||
38 | |||
60 |