Fixing learnpathitem called

skala
Julio Montoya 13 years ago
parent 7ee38f0177
commit e6fad2876a
  1. 3
      main/exercice/exercise.class.php

@ -3596,7 +3596,8 @@ class Exercise {
$end_date = api_strtotime($end_date, 'UTC');
if ($start_date && $end_date) {
$mytime = $end_date- $start_date;
$time_attemp = learnpathItem :: get_scorm_time('js', $mytime);
$new_learnpath_item = new learnpathItem(null);
$time_attemp = $new_learnpath_item->get_scorm_time('js', $mytime);
$h = get_lang('h');
$time_attemp = str_replace('NaN', '00' . $h . '00\'00"', $time_attemp);
$new_array['duration'] = $time_attemp;

Loading…
Cancel
Save