Skip to content
Snippets Groups Projects
Commit 0b4fab85 authored by Alexander Bias's avatar Alexander Bias
Browse files

Bugfix: Prevent debug notice when there are no modules supporting the print_overview() function

parent 1e621cd3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -227,6 +227,7 @@ if ($hassiteconfig) {
// 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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment