From a6466f01b4f0f4b32cb4474c9239cc54580c8b2f Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Thu, 5 Oct 2023 23:17:14 +0300 Subject: [PATCH] - small PHP fix; --- includes/admin/class-site-health.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/admin/class-site-health.php b/includes/admin/class-site-health.php index 93726e6e..79926164 100644 --- a/includes/admin/class-site-health.php +++ b/includes/admin/class-site-health.php @@ -563,13 +563,17 @@ class Site_Health { 'value' => UM()->options()->get( 'profile_secondary_btn_word' ), ); } + + $default_avatar = UM()->options()->get( 'default_avatar' ); + $default_cover = UM()->options()->get( 'default_cover' ); + $appearance_settings['um-default_avatar'] = array( 'label' => __( 'Default Profile Photo', 'ultimate-member' ), - 'value' => UM()->options()->get( 'default_avatar' )['url'], + 'value' => ! empty( $default_avatar['url'] ) ? $default_avatar['url'] : '', ); $appearance_settings['um-default_cover'] = array( 'label' => __( 'Default Cover Photo', 'ultimate-member' ), - 'value' => UM()->options()->get( 'default_cover' )['url'], + 'value' => ! empty( $default_cover['url'] ) ? $default_cover['url'] : '', ); $appearance_settings['um-disable_profile_photo_upload'] = array( 'label' => __( 'Disable Profile Photo Upload', 'ultimate-member' ),