소스 검색

fixed teacher global report bug when you doesn't have students

José Loguercio 9 년 전
부모
커밋
9ced82d753
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      main/mySpace/index.php

+ 1 - 0
main/mySpace/index.php

@@ -203,6 +203,7 @@ $numberTeachers = 0;
 $countHumanResourcesUsers = 0;
 $daysAgo = 7;
 $studentIds = array();
+$avg_courses_per_student = null;
 if (!empty($students)) {
     // Students
     $nb_students = count($students);