diff --git a/main/coursecopy/classes/CourseRestorer.class.php b/main/coursecopy/classes/CourseRestorer.class.php index 204d0e7892..ed2e6d74d7 100755 --- a/main/coursecopy/classes/CourseRestorer.class.php +++ b/main/coursecopy/classes/CourseRestorer.class.php @@ -1899,7 +1899,7 @@ class CourseRestorer $answerId = Database::insert($table_ans, $params); if ($answerId) { - $sql = "UPDATE $table_ans SET id = iid, id_auto = iid, WHERE iid = $answerId"; + $sql = "UPDATE $table_ans SET id = iid, id_auto = iid WHERE iid = $answerId"; Database::query($sql); } }