From e1b35403a0bb096fb4859285d389bb6ee9acbd48 Mon Sep 17 00:00:00 2001 From: ashubawork <43743394+ashubawork@users.noreply.github.com> Date: Thu, 16 Sep 2021 13:18:06 +0300 Subject: [PATCH] - check variable as array (issue #913) --- includes/um-short-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index 541afeff..092a21b9 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -700,7 +700,7 @@ function um_user_submitted_registration_formatted( $style = false ) { $fields = maybe_unserialize( $fields ); } - if ( isset( $fields ) ) { + if ( ! empty( $fields ) ) { $fields['form_id'] = array( 'title' => __( 'Form', 'ultimate-member' ) );