From e6fad2876a6fa43cc695f4e3f2fe45ebee5ffdb1 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 4 Dec 2012 10:25:58 +0100 Subject: [PATCH] Fixing learnpathitem called --- main/exercice/exercise.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index f51ce0293a..d07adb9eea 100644 --- a/main/exercice/exercise.class.php +++ b/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;