courseformat/weeks MDL-20628 removed some notices

This commit is contained in:
Martin Dougiamas 2010-04-27 03:10:58 +00:00
parent 91eab03d10
commit 83f1fa9c4d

View File

@ -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');