@ -642,7 +642,7 @@ if ($form->validate()) {
);
$exercise_redirect = intval(Session::read('exercise_redirect'));
$objExercise = new Exercise();
$objExercise = new Exercise($course_info['real_id']);
$result = $objExercise->read($exercise_redirect);
if (!empty($exercise_redirect) && !empty($result)) {