From ff3e6adc343103978644cbd7c9d640efee9c5698 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 7 Sep 2016 23:36:07 +0800 Subject: [PATCH] Fix missing user in member directory after profile update --- 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 2c7d29e6..ccd6c9f9 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -131,7 +131,7 @@ class UM_Form { $this->post_form['role'] = $role; $this->post_form['submitted']['role'] = $role; - }else{ + }else if( isset( $this->post_form['mode'] ) && $this->post_form['mode'] == 'register' ) { $role = $this->assigned_role( $this->form_id ); $this->post_form['role'] = $role; $this->post_form['submitted']['role'] = $role;