From 4bf87059b0ad858b8251db805e398a19c0ecc995 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 8 Oct 2013 23:00:04 +0200 Subject: [PATCH] Fixing SQL error --- main/coursecopy/classes/CourseRestorer.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main/coursecopy/classes/CourseRestorer.class.php b/main/coursecopy/classes/CourseRestorer.class.php index bebe3f3bec..5e15477a4c 100644 --- a/main/coursecopy/classes/CourseRestorer.class.php +++ b/main/coursecopy/classes/CourseRestorer.class.php @@ -226,7 +226,7 @@ class CourseRestorer } } } - } + } } /** @@ -1249,7 +1249,7 @@ class CourseRestorer 'expired_time' => (int)$quiz->expired_time, 'end_button' => (int)$quiz->end_button ); - + if ($respect_base_content) { $my_session_id = $quiz->session_id; if (!empty($quiz->session_id)) { @@ -1445,7 +1445,6 @@ class CourseRestorer $sql = "INSERT INTO ".$table_ans." SET c_id = ".$this->destination_course_id." , - id = '". ($index + 1)."', question_id = '".$new_id."', answer = '".self::DBUTF8escapestring($answer['answer'])."', correct = '".$answer['correct']."', @@ -1978,7 +1977,7 @@ class CourseRestorer * restore works * @todo fix this crappy function */ - function restore_student_publication() + function restore_student_publication() { $work_assignment_table = Database :: get_course_table(TABLE_STUDENT_PUBLICATION_ASSIGNMENT); $work_table = Database :: get_course_table(TABLE_STUDENT_PUBLICATION); @@ -2131,7 +2130,7 @@ class CourseRestorer } } - function restore_wiki($session_id = 0) + function restore_wiki($session_id = 0) { if ($this->course->has_resources(RESOURCE_WIKI)) { // wiki table of the target course