diff --git a/Changes.md b/Changes.md index 2d3002a..97e3fa4 100644 --- a/Changes.md +++ b/Changes.md @@ -3,6 +3,7 @@ Version 404.0.2 - In development -------------------------------- +1. Fix section zero with a summary is shown when there are no modules. Version 404.0.1 - 22/04/2024 ---------------------------- diff --git a/classes/output/renderer.php b/classes/output/renderer.php index 58cba0a..05869d4 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -791,7 +791,7 @@ public function multiple_section_page() { // General section if non-empty. $thissection = $sections[0]; unset($sections[0]); - if ($thissection->summary || !empty($modinfo->sections[0]) || $this->userisediting) { + if (!empty($modinfo->sections[0]) || $this->userisediting) { $content .= $this->topcoll_section($thissection, $course, false); }