mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
courseformat/weeks MDL-20628 removed some notices
This commit is contained in:
parent
91eab03d10
commit
83f1fa9c4d
@ -216,7 +216,7 @@
|
||||
echo $OUTPUT->heading($currenttext.$weekperiod.' ('.get_string('notavailable').')', 3, 'weekdates');
|
||||
|
||||
} else {
|
||||
if (!is_null($thissection->name)) {
|
||||
if (isset($thissection->name) && ($thissection->name !== NULL)) { // empty string is ok
|
||||
echo $OUTPUT->heading($thissection->name, 3, 'weekdates');
|
||||
} else {
|
||||
echo $OUTPUT->heading($currenttext.$weekperiod, 3, 'weekdates');
|
||||
|
Loading…
x
Reference in New Issue
Block a user