Commit 3fac0f76 authored by cspitzlay's avatar cspitzlay Committed by borisson_
Browse files

Issue #2938089 by cspitzlay: Fatal error after upgrade to beta-2

parent 5ad1df5e
......@@ -370,7 +370,7 @@ function facets_language_switch_links_alter(array &$links, $type, \Drupal\Core\U
$urlProcessorManager = \Drupal::service('plugin.manager.facets.url_processor');
foreach ($links as &$link) {
if ($link['language']->getId() === $language_interface->getId()) {
if (empty($link['language']) || $link['language']->getId() === $language_interface->getId()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment