diff --git a/core/modules/content_translation/content_translation.pages.inc b/core/modules/content_translation/content_translation.pages.inc index 2802415..09b8e48 100644 --- a/core/modules/content_translation/content_translation.pages.inc +++ b/core/modules/content_translation/content_translation.pages.inc @@ -47,6 +47,7 @@ function content_translation_overview(EntityInterface $entity) { // Determine which languages have been used as a source for other // translations. + $language_as_source = array(); foreach ($languages as $language) { $langcode = $language->langcode; @@ -62,12 +63,7 @@ function content_translation_overview(EntityInterface $entity) { } // Only show the translations column if there is more than one source value. - if (isset($language_as_source) && count($language_as_source) > 1) { - $show_source_column = TRUE; - } - else { - $show_source_column = FALSE; - } + $show_shource_column = count($language_as_source) > 1; // Set up the translations table. if ($show_source_column) {