Skip to content

Commit

Permalink
feat: add isset check
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Sep 13, 2024
1 parent d9ff4bb commit eeb66bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-simple-local-avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function get_simple_local_avatar_url( $id_or_email, $size ) {

// Fetch local avatar from meta and make sure it's properly set.
$local_avatars = $this->get_user_local_avatar( $user_id );
if ( empty( $local_avatars['full'] ) ) {
if ( ! isset( $local_avatars['full'] ) ||empty( $local_avatars['full'] ) ) {
return '';
}

Expand Down

0 comments on commit eeb66bc

Please sign in to comment.