Преглед на файлове

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);