Fixed some array indices

This commit is contained in:
moodler 2003-08-25 02:48:09 +00:00
parent 05c47ef78e
commit 5884d4e2fd
7 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@
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);
}

View File

@ -60,7 +60,7 @@
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);
}

View File

@ -64,7 +64,7 @@
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);
}

View File

@ -76,7 +76,7 @@
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) {

View File

@ -66,7 +66,7 @@
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);
}

View File

@ -971,7 +971,7 @@
//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) {

View File

@ -61,7 +61,7 @@
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