diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index 7805830..1991cfb 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -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 ''; }