mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-34471 libraries: changing strictness of context_XXXX::instance() when needed
This commit is contained in:
parent
bf0f06b1be
commit
0d4d49d18a
2 changed files with 8 additions and 8 deletions
|
@ -129,7 +129,7 @@ foreach ($modinfo->instances['forum'] as $forumid=>$cm) {
|
|||
|
||||
$forum = $forums[$forumid];
|
||||
|
||||
if (!$context = context_module::instance($cm->id)) {
|
||||
if (!$context = context_module::instance($cm->id, IGNORE_MISSING)) {
|
||||
continue; // Shouldn't happen
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue