Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Bugfix: Prevent debug notice when there are no modules supporting the…
Browse files Browse the repository at this point in the history
… print_overview() function
  • Loading branch information
abias committed Jun 16, 2017
1 parent 1e621cd commit 0b4fab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ moodle-block_course_overview_campus
Changes
-------

### Unreleased

* 2017-06-16 - Bugfix: Prevent debug notice when there are no modules supporting the print_overview() function

### v3.2-r5

* 2017-05-05 - Improve README.md
Expand Down
1 change: 1 addition & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@

// Get activities which provide course news.
$modules = get_plugin_list_with_function('mod', 'print_overview');
$modchoices = array();
foreach ($modules as $m => $f) {
$modchoices[$m] = get_string('pluginname', $m);
}
Expand Down

0 comments on commit 0b4fab8

Please sign in to comment.