From 4411f2be2a2a4af69e5ec2466c37a5e2d70cdbac Mon Sep 17 00:00:00 2001 From: RomanSteinberg <romanofficial@yandex.ru> Date: Fri, 27 Feb 2015 17:05:16 +0300 Subject: [PATCH] FIX: syntax --- .../application/classes/Controller/Teacher/Rating.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/~dev_rating/application/classes/Controller/Teacher/Rating.php b/~dev_rating/application/classes/Controller/Teacher/Rating.php index 4a55118e1..3a9a514b0 100644 --- a/~dev_rating/application/classes/Controller/Teacher/Rating.php +++ b/~dev_rating/application/classes/Controller/Teacher/Rating.php @@ -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); // Студенты и их баллы -- GitLab