Skip to content

Commit

Permalink
MDL-14913 fixing bad copy paste!
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Aug 11, 2008
1 parent 9cd9656 commit 1084878
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mod/choice/restorelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down Expand Up @@ -238,7 +237,7 @@ function choice_answers_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) {
Expand Down

0 comments on commit 1084878

Please sign in to comment.