diff --git a/plugins/content/fields/src/Extension/Fields.php b/plugins/content/fields/src/Extension/Fields.php index dfebe6c0185f1..517a880380baa 100644 --- a/plugins/content/fields/src/Extension/Fields.php +++ b/plugins/content/fields/src/Extension/Fields.php @@ -91,7 +91,7 @@ private function prepare($string, $context, $item) $parts = FieldsHelper::extract($context); - if (count($parts) < 2) { + if (!$parts || count($parts) < 2) { return $string; }