瀏覽代碼

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