diff --git a/~dev_rating/application/classes/Model/Student.php b/~dev_rating/application/classes/Model/Student.php index 43fc83de1195cab2cb2ea9fb463b1323a7f0c0bc..e794ff46b03ede512ca5500bf15add1196724a39 100644 --- a/~dev_rating/application/classes/Model/Student.php +++ b/~dev_rating/application/classes/Model/Student.php @@ -51,13 +51,9 @@ class Model_Student extends Model_Container ->execute(); $list = []; - // TODO: use TeacherID. Split fullName? foreach ($result as $row) { - $names =& $list[$row['DisciplineID']]; - $fullName = $row['LastName'] .' '. $row['FirstName'] .' '. $row['SecondName']; - if (!$names) - $names = []; - array_push($names, $fullName); + $id = $row['DisciplineID']; + $list[$id][] = $row; } return $list; }