From 4658aec5eb724d3f2f98dc837880ef702b9fc44b Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 24 Jul 2012 11:52:38 +0800 Subject: [PATCH] MDL-34459 course: Changing strictness of context call in get_category_or_system_context() to keep it consistent with past usages --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 87d220d2117..c2bc4054a78 100644 --- a/course/lib.php +++ b/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(); }