Skip to content
Browse files

MDL-34459 course: Changing strictness of context call in get_category…

…_or_system_context() to keep it consistent with past usages
  • Loading branch information...
1 parent 1f364c8 commit 4658aec5eb724d3f2f98dc837880ef702b9fc44b @ankitagarwal ankitagarwal committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 course/lib.php
@@ -1994,7 +1994,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = 0) {
*/
function get_category_or_system_context($categoryid) {
if ($categoryid) {
- return context_coursecat::instance($categoryid);
+ return context_coursecat::instance($categoryid, IGNORE_MISSING);
} else {
return context_system::instance();
}

0 comments on commit 4658aec

Please sign in to comment.
Something went wrong with that request. Please try again.