From 9dcf9c2c7e59128b6463074141dece1a3cd3dd86 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 6 Apr 2016 14:26:21 +0800 Subject: [PATCH] Remove notice --- core/um-actions-login.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/um-actions-login.php b/core/um-actions-login.php index 3ba247af..bf77e4d4 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -78,7 +78,9 @@ add_action( 'um_before_login_fields', 'um_display_login_errors' ); function um_display_login_errors( $args ) { global $ultimatemember; - + + $error = ''; + if( $ultimatemember->form->count_errors() > 0 ) { $error = array_values( $ultimatemember->form->errors ); $error = array_shift( $error );