diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index cbe7acf..15fefb6 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -753,10 +753,10 @@ function theme_locale_translate_edit_form_strings($variables) { */ function template_preprocess_locale_translation_update_info(&$variables) { $details = array(); - $releases = array(); // Build output for available updates. if (isset($variables['updates'])) { + $releases = array(); if ($variables['updates']) { foreach ($variables['updates'] as $update) { $modules[] = $update['name']; @@ -772,6 +772,7 @@ function template_preprocess_locale_translation_update_info(&$variables) { // Build output for updates not found. if (isset($variables['not_found'])) { + $releases = array(); $variables['missing_updates_status'] = format_plural(count($variables['not_found']), 'Missing translations for one project', 'Missing translations for @count projects'); if ($variables['not_found']) { foreach ($variables['not_found'] as $update) {