Fix E_NOTICE messages - refs BT#9087

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent b6cc122e5b
commit c9ff771a56
  1. 4
      main/admin/teacher_time_report.php

@ -76,6 +76,7 @@ if (!empty($selectedCourse)) {
foreach ($sessionsByCourse as $session) {
$coaches = CourseManager::get_coachs_from_course($session['id'], $selectedCourse);
if ($coaches) {
foreach ($coaches as $coach) {
$totalTime = SessionManager::getUserTimeInCourse(
$coach['user_id'],
@ -106,6 +107,7 @@ if (!empty($selectedCourse)) {
}
}
}
}
if (!empty($selectedSession)) {
$withFilter = true;
@ -119,6 +121,7 @@ if (!empty($selectedSession)) {
foreach ($courses as $course) {
$coaches = CourseManager::get_coachs_from_course($selectedSession, $course['code']);
if ($coaches) {
foreach ($coaches as $coach) {
$totalTime = SessionManager::getUserTimeInCourse(
$coach['user_id'],
@ -149,6 +152,7 @@ if (!empty($selectedSession)) {
}
}
}
}
if (!empty($selectedTeacher)) {
$withFilter = true;

Loading…
Cancel
Save