From 172e6817141df0e579fde08b61aee2459c6b8e53 Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 13 Dec 2022 23:39:42 +0200 Subject: [PATCH] - probably fixed: #1084; --- includes/core/class-fields.php | 7 ++++++- includes/um-short-functions.php | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 704228fa..8ed31ee5 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -87,7 +87,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) { foreach ( $social as $k => $arr ) { if ( um_profile( $k ) ) { - $match = is_array( $arr['match'] ) ? $arr['match'][0] : $arr['match']; ?> + if ( array_key_exists( 'match' , $arr ) ) { + $match = is_array( $arr['match'] ) ? $arr['match'][0] : $arr['match']; + } else { + $match = null; + } + ?>