Skip to content

Commit

Permalink
Fix section zero with a summary is shown when there are no modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Apr 28, 2024
1 parent e0bdef0 commit d6bd951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------
Expand Down
2 changes: 1 addition & 1 deletion classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d6bd951

Please sign in to comment.