mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed some array indices
This commit is contained in:
parent
05c47ef78e
commit
5884d4e2fd
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user