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'],
@ -105,6 +106,7 @@ if (!empty($selectedCourse)) {
);
}
}
}
}
if (!empty($selectedSession)) {
@ -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'],
@ -148,6 +151,7 @@ if (!empty($selectedSession)) {
);
}
}
}
}
if (!empty($selectedTeacher)) {

Loading…
Cancel
Save