Remove notices

This commit is contained in:
Champ Camba
2017-07-27 19:22:37 +08:00
parent 9e53314c3a
commit 1db8a9ae3a
+1 -1
View File
@@ -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>';