Minor - cleaning white spaces

skala
Julio Montoya 13 years ago
parent 9240efcb70
commit 68adb5d12c
  1. 2
      main/exercice/exercise.class.php
  2. 12
      main/tracking/exams.php

@ -2744,7 +2744,7 @@ class Exercise {
} else {
if ($debug) error_log('Showing questions $from '.$from);
switch($answerType) {
switch ($answerType) {
case UNIQUE_ANSWER :
case UNIQUE_ANSWER_NO_OPTION:
case MULTIPLE_ANSWER :

@ -280,18 +280,6 @@ foreach ($course_list as $current_course) {
$total_with_parameter_score++;
}
/*
$sql_last_attempt='SELECT exe_id FROM '.$tbl_stats_exercices.' WHERE exe_exo_id="'.$a_exercices['id'].'" AND exe_user_id="'.$current_student_id.'" AND exe_cours_id="'.$current_course['code'].'" ORDER BY exe_date DESC LIMIT 1';
$resultLastAttempt = Database::query($sql_last_attempt);
if(Database::num_rows($resultLastAttempt)>0) {
$id_last_attempt=Database::result($resultLastAttempt,0,0);
if($a_essais['essais']>0) {
/// echo '<a href="../exercice/exercise_show.php?id='.$id_last_attempt.'&cidReq='.$current_course['code'].'&student='.$current_student_id.'&origin='.(empty($_GET['origin']) ? 'tracking' : $_GET['origin']).'"> <img src="'.api_get_path(WEB_IMG_PATH).'quiz.gif" border="0"> </a>';
}
}
*/
if (!$global) {
$user_info = api_get_user_info($current_student_id);

Loading…
Cancel
Save