MDL-64441 badges: Remove notice when language is empty

This commit is contained in:
Sara Arjona 2018-12-19 08:33:50 +01:00
parent 38a1b4f203
commit 706c8d1936

View File

@ -351,7 +351,9 @@ class core_badges_renderer extends plugin_renderer_base {
if (!empty($badge->version)) {
$dl[get_string('version', 'badges')] = $badge->version;
}
$dl[get_string('language')] = $languages[$badge->language];
if (!empty($badge->language)) {
$dl[get_string('language')] = $languages[$badge->language];
}
$dl[get_string('description', 'badges')] = $badge->description;
if (!empty($badge->imageauthorname)) {
$dl[get_string('imageauthorname', 'badges')] = $badge->imageauthorname;