Skip to content

Commit

Permalink
fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
tobeyadr committed Dec 31, 2024
1 parent 5e62e9e commit bd7548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/form/form-v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ public static function register_fields() {
$value = $posted_data[ $field['name'] ];

// multiple options
if ( $field['multiple'] ) {
if ( isset_not_empty( $field, 'multiple' ) ) {
if ( ! is_array( $value ) ) {
return new \WP_Error( 'invalid_selection', __( 'Invalid selection', 'groundhogg' ) );
}
Expand Down

0 comments on commit bd7548b

Please sign in to comment.