|
|
|
@ -155,7 +155,7 @@ if ($form->validate()) { |
|
|
|
|
|
|
|
|
|
|
|
// Partials |
|
|
|
// Partials |
|
|
|
$partialDuration += $item['duration']; |
|
|
|
$partialDuration += $item['duration']; |
|
|
|
/* |
|
|
|
/* |
|
|
|
if (empty($partialMinLogin)) { |
|
|
|
if (empty($partialMinLogin)) { |
|
|
|
$partialMinLogin = api_strtotime($item['login'], 'UTC'); |
|
|
|
$partialMinLogin = api_strtotime($item['login'], 'UTC'); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -222,7 +222,7 @@ if ($form->validate()) { |
|
|
|
|
|
|
|
|
|
|
|
// Partials |
|
|
|
// Partials |
|
|
|
$partialDuration += $item['duration']; |
|
|
|
$partialDuration += $item['duration']; |
|
|
|
/* |
|
|
|
/* |
|
|
|
if (empty($partialMinLogin)) { |
|
|
|
if (empty($partialMinLogin)) { |
|
|
|
$partialMinLogin = api_strtotime($item['login'], 'UTC'); |
|
|
|
$partialMinLogin = api_strtotime($item['login'], 'UTC'); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -236,7 +236,7 @@ if ($form->validate()) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($result)) { |
|
|
|
if (!empty($result)) { |
|
|
|
/* |
|
|
|
/* |
|
|
|
$record = [ |
|
|
|
$record = [ |
|
|
|
customDate($partialMinLogin, true), |
|
|
|
customDate($partialMinLogin, true), |
|
|
|
customDate($partialMaxLogin, true), |
|
|
|
customDate($partialMaxLogin, true), |
|
|
|
@ -249,7 +249,6 @@ if ($form->validate()) { |
|
|
|
api_format_time($partialDuration, 'js'), |
|
|
|
api_format_time($partialDuration, 'js'), |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$report[0]['courses'][$course['course_id']][] = $record; |
|
|
|
$report[0]['courses'][$course['course_id']][] = $record; |
|
|
|
$report[0]['name'][$course['course_id']] = $course['title']; |
|
|
|
$report[0]['name'][$course['course_id']] = $course['title']; |
|
|
|
} |
|
|
|
} |
|
|
|
|