diff --git a/web/themes/asc_bootstrap/asc_bootstrap.theme b/web/themes/asc_bootstrap/asc_bootstrap.theme index b513a3c5cf9fdd7d9aa2eaf1aa15e21c13376be1..ccb019d5ec025760148dc1a53b763d9075624fb3 100755 --- a/web/themes/asc_bootstrap/asc_bootstrap.theme +++ b/web/themes/asc_bootstrap/asc_bootstrap.theme @@ -570,15 +570,15 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $ */ if (($form['#id'] == 'views-exposed-form-research-project-gallery-block-1')||($form['#id'] == 'views-exposed-form-research-project-gallery-page-1')) { - if(count($form['field_research_gallery_tags_target_id']['#options']) == 1) { + if(count((array)$form['field_research_gallery_tags_target_id']['#options']) == 1) { $form['field_research_gallery_tags_target_id']['#access'] = FALSE; } - if(count($form['field_research_gallery_tags_2_target_id']['#options']) == 1) { + if(count((array)$form['field_research_gallery_tags_2_target_id']['#options']) == 1) { $form['field_research_gallery_tags_2_target_id']['#access'] = FALSE; } - if(count($form['field_research_gallery_tags_3_target_id']['#options']) == 1) { + if(count((array)$form['field_research_gallery_tags_3_target_id']['#options']) == 1) { $form['field_research_gallery_tags_3_target_id']['#access'] = FALSE; }