From 46eff713653bbb876d797d932b9e3f200a7c4d44 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Fri, 12 Feb 2016 00:00:31 +0800 Subject: [PATCH] Remove notice --- core/um-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-form.php b/core/um-form.php index 4bb9a6fe..dd482542 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -80,7 +80,7 @@ class UM_Form { $this->post_form = array_merge( $this->form_data, $this->post_form ); - if ( isset( $this->form_data['role'] ) && ( (boolean) $this->form_data['role'] ) && $_POST['role'] != $this->form_data['role'] ) { + if ( isset( $this->form_data['role'] ) && ( (boolean) $this->form_data['role'] ) && isset( $_POST['role'] ) && $_POST['role'] != $this->form_data['role'] ) { wp_die( __( 'This is not possible for security reasons.','ultimatemember') ); } else { if ( isset( $this->form_data['custom_fields'] ) && strstr( $this->form_data['custom_fields'], 'role_' ) ) {