diff --git a/~dev_rating/application/classes/Controller/Student/Index.php b/~dev_rating/application/classes/Controller/Student/Index.php index 30843a96ba0fd8a17ef200f19ab999960b2cd441..f5884d332c8a18b3c3b410621dfbe54271a4992f 100644 --- a/~dev_rating/application/classes/Controller/Student/Index.php +++ b/~dev_rating/application/classes/Controller/Student/Index.php @@ -8,8 +8,12 @@ class Controller_Student_Index extends Controller_Environment_Student $marks = []; foreach ($disciplines as $dis) { - if (isset($dis->Rate) && isset($dis->MaxCurrentRate)) + if (isset($dis->Rate) && isset($dis->MaxCurrentRate)) { $marks[$dis->ID] = Model_Subject::getECTSMark($dis->Rate, $dis->MaxCurrentRate, $exam = NULL); + + if ($dis->Type == Model_Discipline::CREDIT && $dis->Rate >= 60) + $marks[$dis->ID] = Model_Subject::MARK_A; + } } $teachers = $student->getTeachers();