diff --git a/docroot/core/modules/views/src/Plugin/views/filter/EntityReference.php b/docroot/core/modules/views/src/Plugin/views/filter/EntityReference.php
index 0b5aa0393..5de3e5efb 100644
--- a/docroot/core/modules/views/src/Plugin/views/filter/EntityReference.php
+++ b/docroot/core/modules/views/src/Plugin/views/filter/EntityReference.php
@@ -693,8 +693,10 @@ public function validateExposed(&$form, FormStateInterface $form_state) {
     }
 
     if ($values = $form_state->getValue($identifier)) {
-      foreach ($values as $value) {
-        $this->validatedExposedInput[] = $value['target_id'];
+      if (is_array($values) == TRUE) {
+        foreach ($values as $value) {
+          $this->validatedExposedInput[] = $value['target_id'];
+        }
       }
     }
   }
