Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…_or_system_context() to keep it consistent with past usages
  • Loading branch information...
commit 4658aec5eb724d3f2f98dc837880ef702b9fc44b 1 parent 1f364c8
Ankit Agarwal ankitagarwal authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  course/lib.php
2  course/lib.php
@@ -1994,7 +1994,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = 0) {
1994 1994 */
1995 1995 function get_category_or_system_context($categoryid) {
1996 1996 if ($categoryid) {
1997   - return context_coursecat::instance($categoryid);
  1997 + return context_coursecat::instance($categoryid, IGNORE_MISSING);
1998 1998 } else {
1999 1999 return context_system::instance();
2000 2000 }

0 comments on commit 4658aec

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