Skip to content

Commit

Permalink
Fix issue #4 - ignore missing or inaccessible categories
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Feb 23, 2024
1 parent 64fd87f commit 4c2e1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/plugininfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function get_plugin_configuration_for_context(context $context, ar

$currentcat = null;
if ($PAGE->course) {
$currentcat = \core_course_category::get($PAGE->course->category);
$currentcat = \core_course_category::get($PAGE->course->category, 0 /* IGNORE_MISSING */);
}

return [
Expand Down

0 comments on commit 4c2e1f1

Please sign in to comment.