Permalink
Browse files

MDL-34467 glossary: Changing strictness of new context_xxx::instances…

…() calls
  • Loading branch information...
ankitagarwal committed Jul 27, 2012
1 parent f7562e8 commit 703a2c2e3f13eaa59918baf551b246b757c03a28
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/glossary/lib.php
View
@@ -145,7 +145,7 @@ function glossary_delete_instance($id) {
return false;
}
- if (!$context = context_module::instance($cm->id)) {
+ if (!$context = context_module::instance($cm->id, IGNORE_MISSING)) {
return false;
}
@@ -1530,7 +1530,7 @@ function glossary_search_entries($searchterms, $glossary, $extended) {
function glossary_print_attachments($entry, $cm, $type=NULL, $align="left") {
global $CFG, $DB, $OUTPUT;
- if (!$context = context_module::instance($cm->id)) {
+ if (!$context = context_module::instance($cm->id, IGNORE_MISSING)) {
return '';
}

0 comments on commit 703a2c2

Please sign in to comment.