mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-82905 core_badges: Criteria as list only if multiple items
This commit is contained in:
parent
ecfcf00d92
commit
e1ee1bfdb5
@ -690,7 +690,9 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
}
|
||||
}
|
||||
|
||||
return $overalldescr . $condition . html_writer::alist($items, array(), 'ul');;
|
||||
$criteriadesc = count($items) > 1 ? html_writer::alist($items, [], 'ul') : reset($items);
|
||||
|
||||
return $overalldescr . $condition . $criteriadesc;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user