diff --git a/uw_cfg_common.module b/uw_cfg_common.module index f149a9fc4b970e424ca3347e5f5ce20ffd11d32c..95884f44590a91623fab9d05318ff2bc20282190 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -1055,6 +1055,7 @@ function _uw_cfg_common_banner_validate(array &$form, FormStateInterface $form_s // then perform the validation. if ( isset($values['field_uw_type_of_media']) && + !empty($values['field_uw_type_of_media']) && $values['field_uw_type_of_media'][0]['value'] == 'banner' ) {