From fe781377142d2a04e0a23d1e2dfac9c56babf21f Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 25 May 2016 12:14:36 +0800 Subject: [PATCH] Remove notice --- core/um-actions-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-form.php b/core/um-actions-form.php index 0ee2b4cf..fc3b1d83 100644 --- a/core/um-actions-form.php +++ b/core/um-actions-form.php @@ -92,7 +92,7 @@ if ( $words != '' ) { $words = array_map("rtrim", explode("\n", $words)); - if( isset( $fields ) ){ + if( isset( $fields ) && ! empty( $fields ) && is_array( $fields ) ){ foreach( $fields as $key => $array ) { if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) { if ( !$ultimatemember->form->has_error( $key ) && isset( $args[$key] ) && in_array( $args[$key], $words ) ) {