Minor cosmetic changes + avoid warning PHP message

skala
Julio Montoya 14 years ago
parent 8ede09f2f9
commit 59e5ceaab6
  1. 1
      plugin/dashboard/block_session/block_session.class.php
  2. 5
      plugin/dashboard/block_student/block_student.class.php
  3. 1
      plugin/dashboard/block_student_graph/block_student_graph.class.php
  4. 2
      plugin/dashboard/block_teacher/block_teacher.class.php
  5. 2
      plugin/dashboard/block_teacher_graph/block_teacher_graph.class.php

@ -156,4 +156,3 @@ class BlockSession extends Block {
}
}
?>

@ -212,7 +212,7 @@ class BlockStudent extends Block {
$course_code = $course['code'];
$cats = Category::load(null, null, $course_code, null, null, null, false);
$scoretotal = array();
if (isset($cats)) {
if (isset($cats) && isset($cats[0])) {
$scoretotal= $cats[0]->calc_score($student_id, $course_code);
}
@ -257,7 +257,4 @@ class BlockStudent extends Block {
function get_number_of_students() {
return count($this->students);
}
}
?>

@ -211,4 +211,3 @@ class BlockStudentGraph extends Block {
return count($this->students);
}
}
?>

@ -216,5 +216,3 @@ class BlockTeacher extends Block {
}
}
?>

@ -198,5 +198,3 @@ class BlockTeacherGraph extends Block {
}
}
?>

Loading…
Cancel
Save