From 5884d4e2fdb78d93f35f0273936fdf83bcf36abd Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Aug 2003 02:48:09 +0000 Subject: [PATCH] Fixed some array indices --- mod/assignment/restorelib.php | 2 +- mod/chat/restorelib.php | 2 +- mod/choice/restorelib.php | 2 +- mod/forum/restorelib.php | 2 +- mod/journal/restorelib.php | 2 +- mod/quiz/restorelib.php | 2 +- mod/survey/restorelib.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mod/assignment/restorelib.php b/mod/assignment/restorelib.php index 922bb603922..4ba64b5436d 100644 --- a/mod/assignment/restorelib.php +++ b/mod/assignment/restorelib.php @@ -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); } diff --git a/mod/chat/restorelib.php b/mod/chat/restorelib.php index 9a23a40ddec..e3306b96e47 100644 --- a/mod/chat/restorelib.php +++ b/mod/chat/restorelib.php @@ -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); } diff --git a/mod/choice/restorelib.php b/mod/choice/restorelib.php index 38344b464b0..d342d6f39a3 100644 --- a/mod/choice/restorelib.php +++ b/mod/choice/restorelib.php @@ -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); } diff --git a/mod/forum/restorelib.php b/mod/forum/restorelib.php index 6be7ecd17d2..d65495612a6 100644 --- a/mod/forum/restorelib.php +++ b/mod/forum/restorelib.php @@ -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) { diff --git a/mod/journal/restorelib.php b/mod/journal/restorelib.php index acc5327204c..9aa6f8edfa7 100644 --- a/mod/journal/restorelib.php +++ b/mod/journal/restorelib.php @@ -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); } diff --git a/mod/quiz/restorelib.php b/mod/quiz/restorelib.php index 5371a36e45e..ccf230edb17 100644 --- a/mod/quiz/restorelib.php +++ b/mod/quiz/restorelib.php @@ -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) { diff --git a/mod/survey/restorelib.php b/mod/survey/restorelib.php index a77937fdefd..9b0c826713f 100644 --- a/mod/survey/restorelib.php +++ b/mod/survey/restorelib.php @@ -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