mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Remove notices
This commit is contained in:
@@ -631,7 +631,7 @@ if ( ! class_exists( 'Admin_Forms' ) ) {
|
||||
foreach ( $field_data['options'] as $key=>$option ) {
|
||||
if ( ! empty( $field_data['multi'] ) ) {
|
||||
|
||||
if ( ! is_array( $value ) && empty( $value ) )
|
||||
if ( ! is_array( $value ) || empty( $value ) )
|
||||
$value = array();
|
||||
|
||||
$options .= '<option value="' . $key . '" ' . selected( in_array( $key, $value ), true, false ) . '>' . $option . '</option>';
|
||||
|
||||
Reference in New Issue
Block a user