mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-76018-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
5ca124e7a2
@ -66,7 +66,8 @@ class activity_header implements \renderable, \templatable {
|
||||
$this->title = format_string($page->activityrecord->name);
|
||||
}
|
||||
|
||||
if (empty($layoutoptions['nodescription']) && $page->activityrecord->intro && trim($page->activityrecord->intro)) {
|
||||
if (empty($layoutoptions['nodescription']) && !empty($page->activityrecord->intro) &&
|
||||
trim($page->activityrecord->intro)) {
|
||||
$this->description = format_module_intro($this->page->activityname, $page->activityrecord, $page->cm->id);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user