diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php index 16d9b77..dfe21ef 100644 --- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php +++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php @@ -271,8 +271,10 @@ protected function valueValidate($form, FormStateInterface $form_state) { } $tids = array(); - foreach ($form_state->getValue(array('options', 'value')) as $value) { - $tids[] = $value['target_id']; + if ($values = $form_state->getValue(array('options', 'value'))) { + foreach ($values as $value) { + $tids[] = $value['target_id']; + } } $form_state->setValue(array('options', 'value'), $tids); }