mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
outputlib MDL-20103 fix php NOTICE when content has no assigned icon
This commit is contained in:
parent
9181e76774
commit
d0b7a11f43
1 changed files with 3 additions and 1 deletions
|
@ -1006,8 +1006,10 @@ class moodle_core_renderer extends moodle_renderer_base {
|
|||
foreach ($items as $key => $string) {
|
||||
$item = $this->output_start_tag('li', array('class' => 'r' . $row));
|
||||
if ($icons) {
|
||||
if (key_exists($key, $icons)) { //test if the content has an assigned icon
|
||||
$item .= $this->output_tag('div', array('class' => 'icon column c0'), $icons[$key]);
|
||||
}
|
||||
}
|
||||
$item .= $this->output_tag('div', array('class' => 'column c1'), $string);
|
||||
$item .= $this->output_end_tag('li');
|
||||
$lis[] = $item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue