skala
Julio Montoya 14 years ago
commit 6cc4824084
  1. 9
      main/inc/lib/tracking.lib.php

@ -2253,12 +2253,15 @@ class Tracking {
$exercices['title'] = Display::url($exercices['title'], $url, array('target'=>'_blank'));
$html .= Display::tag('td', $exercices['title']);
//Exercise configuration show results
if ($exercices['results_disabled'] == 0) {
//Exercise configuration show results show results or show only score
if ($exercices['results_disabled'] == 0 || $exercices['results_disabled'] == 2) {
$latest_attempt_url = '';
$best_score = $position = $percentage_score_result = '-';
$graph = $normal_graph = null;
//Getting best results
$best_score_data = get_best_score($exercices['id'], $course_info['code'], $session_id);
$best_score = show_score($best_score_data['exe_result'], $best_score_data['exe_weighting']);
@ -2293,7 +2296,7 @@ class Tracking {
} else {
// Exercise configuration NO results
$html .= Display::tag('td', 0, array('align'=>'center'));
$html .= Display::tag('td', $attempts, array('align'=>'center'));
$html .= Display::tag('td', '-', array('align'=>'center'));
$html .= Display::tag('td', '-', array('align'=>'center'));
$html .= Display::tag('td', '-', array('align'=>'center'));

Loading…
Cancel
Save