Skip to content

Commit

Permalink
MDL-34459 course: Changing strictness of context call in get_category…
Browse files Browse the repository at this point in the history
…_or_system_context() to keep it consistent with past usages
  • Loading branch information
ankitagarwal committed Jul 24, 2012
1 parent 1f364c8 commit 4658aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -1994,7 +1994,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = 0) {
*/ */
function get_category_or_system_context($categoryid) { function get_category_or_system_context($categoryid) {
if ($categoryid) { if ($categoryid) {
return context_coursecat::instance($categoryid); return context_coursecat::instance($categoryid, IGNORE_MISSING);
} else { } else {
return context_system::instance(); return context_system::instance();
} }
Expand Down

0 comments on commit 4658aec

Please sign in to comment.