MDL-34905 quiz: missing global $DB;

This code normally only runs when JS is disabled, which is why this was
not noticed before.
This commit is contained in:
Tim Hunt 2012-08-15 10:25:25 +01:00
parent 87e9331d93
commit 4be550c57d

View File

@ -1335,6 +1335,8 @@ class quiz_attempt {
* flagged state was changed in the request.
*/
public function save_question_flags() {
global $DB;
$transaction = $DB->start_delegated_transaction();
$this->quba->update_question_flags();
question_engine::save_questions_usage_by_activity($this->quba);