diff --git a/core/modules/search/src/SearchIndex.php b/core/modules/search/src/SearchIndex.php index 4d67d63753..5a3244484a 100644 --- a/core/modules/search/src/SearchIndex.php +++ b/core/modules/search/src/SearchIndex.php @@ -118,7 +118,7 @@ public function index($type, $sid, $langcode, $text, $update_weights = TRUE) { foreach ($split as $value) { if ($tag) { // Increase or decrease score per word based on tag. - [$tagname] = explode(' ', $value, 2); + list($tagname) = explode(' ', $value, 2); $tagname = mb_strtolower($tagname); // Closing or opening tag? if ($tagname[0] == '/') {