diff --git a/~dev_rating/application/classes/Controller/Teacher/Rating.php b/~dev_rating/application/classes/Controller/Teacher/Rating.php
index 4a55118e1168b7530c71e48f99e924c23a009fd5..3a9a514b0fee4783c4fee02b3963646706616edf 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);
         
         // Студенты и их баллы