Fixed some array indices
authormoodler <moodler>
Mon, 25 Aug 2003 02:48:09 +0000 (02:48 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 02:48:09 +0000 (02:48 +0000)
mod/assignment/restorelib.php
mod/chat/restorelib.php
mod/choice/restorelib.php
mod/forum/restorelib.php
mod/journal/restorelib.php
mod/quiz/restorelib.php
mod/survey/restorelib.php

index 922bb60..4ba64b5 100644 (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);
                 }
index 9a23a40..e3306b9 100644 (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);
                 }
index 38344b4..d342d6f 100644 (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);
                 }
index 6be7ecd..d654956 100644 (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) {
index acc5327..9aa6f8e 100644 (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);
                 }
index 5371a36..ccf230e 100644 (file)
                 //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) {
index a77937f..9b0c826 100644 (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