From eda280e7004e5b3622bd967262c51b221fbe0dae Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Thu, 25 Aug 2016 22:54:19 +0800 Subject: [PATCH] Remove notice --- core/um-actions-password.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/um-actions-password.php b/core/um-actions-password.php index 5b425db7..9795bc3c 100644 --- a/core/um-actions-password.php +++ b/core/um-actions-password.php @@ -103,10 +103,11 @@ foreach ( $_POST as $key => $val ) { if( strstr( $key, "username_b") ){ - $user = $val; + $user = trim( $val ); } } - if ( empty( trim( $user ) ) ) { + + if ( empty( $user ) ) { $ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimatemember') ); }