From 10848785d1d95277eed23b7aed26798fcbf9e7c2 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Mon, 11 Aug 2008 05:21:33 +0000 Subject: [PATCH] MDL-14913 fixing bad copy paste! --- mod/choice/restorelib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mod/choice/restorelib.php b/mod/choice/restorelib.php index 474eabf9ab..f137efc74f 100644 --- a/mod/choice/restorelib.php +++ b/mod/choice/restorelib.php @@ -195,8 +195,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) { //This function restores the choice_answers function choice_answers_restore_mods($choiceid,$info,$restore) { - - global $CFG; + global $CFG, $DB; $status = true; if (isset($info['MOD']['#']['ANSWERS']['0']['#']['ANSWER'])) { @@ -238,7 +237,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) { } //The structure is equal to the db, so insert the choice_answers - $newid = insert_record ("choice_answers",$answer); + $newid = $DB->insert_record ("choice_answers",$answer); //Do some output if (($i+1) % 50 == 0) { -- 2.39.5