Skip to content
Snippets Groups Projects
Commit 4411f2be authored by RomanSteinberg's avatar RomanSteinberg
Browse files

FIX: syntax

parent 2de39174
No related merge requests found
......@@ -231,15 +231,15 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
{
$sql = "SELECT `GetEditRightsForTeacher`('$teacherID', '$disciplineID') AS `Num`;";//"CALL `GetEditRightsForTeacher`('$teacherID', '$disciplineID'); ";
$res = DB::query(Database::SELECT, $sql)->execute();
$row = mysql_fetch_array($res);
return $row['Num'];
//$row = mysql_fetch_array($res);
return $res['Num'];
}
protected function stub_action($page_type) //$page_type: rating, exam
{
$twig = Twig::factory("teacher/".$page_type); //TODO: validate twig
$id = $this->request->param('id');
$disciplineInfo = $this->($id);
$disciplineInfo = $this->getDisciplineInformation($id);
$structureHandled = $this->getStructure($id, $page_type);
// Студенты и их баллы
......
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