From eeb66bcdf86d6ca7d455edd2f363368603a97911 Mon Sep 17 00:00:00 2001 From: Adam Cassis Date: Fri, 13 Sep 2024 11:13:33 +0200 Subject: [PATCH] feat: add isset check --- includes/class-simple-local-avatars.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; }