diff --git a/public/modules/custom/helfi_rekry_content/helfi_rekry_content.module b/public/modules/custom/helfi_rekry_content/helfi_rekry_content.module index 06203fbd..e4e142e3 100644 --- a/public/modules/custom/helfi_rekry_content/helfi_rekry_content.module +++ b/public/modules/custom/helfi_rekry_content/helfi_rekry_content.module @@ -221,7 +221,7 @@ function helfi_rekry_content_preprocess_field(&$variables) { ]; // Use span instead of div for inline fields. - if ($variables['field_name'] && in_array($variables['field_name'], $inlineFields)) { + if (isset($variables['field_name']) && in_array($variables['field_name'], $inlineFields)) { $variables['original_language_inline'] = TRUE; }