diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc index 7fda10f..df79c7e 100644 --- a/core/modules/locale/locale.batch.inc +++ b/core/modules/locale/locale.batch.inc @@ -148,13 +148,16 @@ function locale_translation_batch_status_compare(&$context) { function locale_translation_batch_status_finished($success, $results) { $t = get_t(); if ($success) { - if ($results['sources']) { + if (isset($results['sources']) && $results['sources']) { drupal_set_message(format_plural( count($results['sources']), 'Checked available interface translation updates for one project.', 'Checked available interface translation updates for @count projects.' )); } + else { + drupal_set_message(t('Nothing to check.')); + } } else { drupal_set_message($t('An error occurred trying to check available interface translation updates.'), 'error');