Skip to content
Snippets Groups Projects
Commit 89ec008c authored by PavelBegunkov's avatar PavelBegunkov
Browse files

fix, ошибка при отсутствии дисциплин

parent dfe9c0e8
Branches
Tags
No related merge requests found
...@@ -24,7 +24,9 @@ class Controller_Student_Index extends Controller_UserEnvi { ...@@ -24,7 +24,9 @@ class Controller_Student_Index extends Controller_UserEnvi {
$disciplinesHandled[$i]['Rate'] = $row['Rate']; $disciplinesHandled[$i]['Rate'] = $row['Rate'];
$disciplinesHandled[$i]['MaxRate'] = $row['MaxCurrentRate']; $disciplinesHandled[$i]['MaxRate'] = $row['MaxCurrentRate'];
} }
$twig->disciplines = $disciplinesHandled; if ($i != 0) {
$twig->disciplines = $disciplinesHandled;
}
$this->response->body($twig); $this->response->body($twig);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment