diff --git a/plugin/dashboard/block_daily/block_daily.class.php b/plugin/dashboard/block_daily/block_daily.class.php index 54f9b41cab..be5e0e2863 100755 --- a/plugin/dashboard/block_daily/block_daily.class.php +++ b/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'";