mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-64441 badges: Remove notice when language is empty
This commit is contained in:
parent
38a1b4f203
commit
706c8d1936
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user