Fix NOTICE message due to undefined index

1.10.x
Yannick Warnier 10 years ago
parent e048f5fa81
commit dd16ff1ad1
  1. 5
      plugin/dashboard/block_daily/block_daily.class.php

@ -197,8 +197,11 @@ class BlockDaily extends Block
$attendances[] = get_lang("NotAvailable");
}
}
if (count($attendances) == 0) {
$attendances[] = get_lang("NotAvailable");
}
// quantidade de alunos
// Number of students
$sql = "SELECT user_id FROM $tbl_course_user as course_rel_user
WHERE course_rel_user.status=" . STUDENT . " AND course_rel_user.course_code='$course_code'";

Loading…
Cancel
Save