backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[assignment]->userinfo) {
+ if ($restore->mods['assignment']->userinfo) {
//Restore assignmet_submissions
$status = assignment_submissions_restore_mods ($mod->id, $newid,$info,$restore);
}
backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[chat]->userinfo) {
+ if ($restore->mods['chat']->userinfo) {
//Restore chat_messages
$status = chat_messages_restore_mods ($mod->id, $newid,$info,$restore);
}
backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[choice]->userinfo) {
+ if ($restore->mods['choice']->userinfo) {
//Restore choice_answers
$status = choice_answers_restore_mods ($newid,$info,$restore);
}
backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[forum]->userinfo) {
+ if ($restore->mods['forum']->userinfo) {
//Restore forum_subscriptions
$status = forum_subscriptions_restore_mods ($newid,$info,$restore);
if ($status) {
backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[journal]->userinfo) {
+ if ($restore->mods['journal']->userinfo) {
//Restore journal_entries
$status = journal_entries_restore_mods ($mod->id, $newid,$info,$restore);
}
//We have to restore the question_grades now (course level table)
$status = quiz_question_grades_restore_mods($newid,$info,$restore);
//Now check if want to restore user data and do it.
- if ($restore->mods[quiz]->userinfo) {
+ if ($restore->mods['quiz']->userinfo) {
//Restore quiz_attempts
$status = quiz_attempts_restore_mods ($newid,$info,$restore);
if ($status) {
backup_putid($restore->backup_unique_code,$mod->modtype,
$mod->id, $newid);
//Now check if want to restore user data and do it.
- if ($restore->mods[survey]->userinfo) {
+ if ($restore->mods['survey']->userinfo) {
//Restore survey_answers
$status = survey_answers_restore_mods ($newid,$info,$restore);
//Restore survey_analysis