MDL-34549 added IGNORE_MISSING to context call for bc

This commit is contained in:
Aparup Banerjee 2012-08-28 12:29:17 +08:00
parent 9455f48280
commit 2cdd5d8571

View File

@ -708,7 +708,7 @@ class question_usage_by_activity {
} }
$quba = new question_usage_by_activity($record->component, $quba = new question_usage_by_activity($record->component,
context::instance_by_id($record->contextid)); context::instance_by_id($record->contextid, IGNORE_MISSING));
$quba->set_id_from_database($record->qubaid); $quba->set_id_from_database($record->qubaid);
$quba->set_preferred_behaviour($record->preferredbehaviour); $quba->set_preferred_behaviour($record->preferredbehaviour);