Issue: Undefined Index error on divider element in um-actions-profile.php,

Link: https://secure.helpscout.net/conversation/924073619/32732?folderId=1651531
This commit is contained in:
denisbaranov
2019-08-09 09:35:25 +03:00
parent d27101bced
commit 77b7dd9429
+3 -3
View File
@@ -280,9 +280,9 @@ function um_user_edit_profile( $args ) {
//validation of correct values from options in wp-admin
$stripslashes = $args['submitted'][ $key ];
if ( is_string( $stripslashes ) ) {
$stripslashes = stripslashes( $stripslashes );
$stripslashes = '';
if ( isset( $args['submitted'][ $key ] ) && is_string( $args['submitted'][ $key ] ) ) {
$stripslashes = stripslashes( $args['submitted'][ $key ] );
}
if ( in_array( $array['type'], array( 'select' ) ) &&
! empty( $array['options'] ) && ! empty( $stripslashes ) &&