From 3ff9637a43f811b241cd843c0b8ee426f5f117e8 Mon Sep 17 00:00:00 2001 From: ashubawork Date: Tue, 3 Oct 2023 16:24:44 +0300 Subject: [PATCH] - fix checking $this->global_args['mode'] --- includes/core/class-fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 0b148a19..17483027 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -2831,7 +2831,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $show_bio = false; $bio_html = false; $global_setting = UM()->options()->get( 'profile_show_html_bio' ); - if ( 'profile' === $this->global_args['mode'] ) { + if ( isset( $this->global_args['mode'] ) && 'profile' === $this->global_args['mode'] ) { if ( ! empty( $this->global_args['use_custom_settings'] ) ) { if ( ! empty( $this->global_args['show_bio'] ) ) { $show_bio = true;