From 89ec008c773f128f1edab5f46857b59f3835e87e Mon Sep 17 00:00:00 2001
From: PavelBegunkov <asml.Silence@gmail.com>
Date: Thu, 21 Aug 2014 20:37:11 +0400
Subject: [PATCH] =?UTF-8?q?fix,=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?=
 =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82?=
 =?UTF-8?q?=D0=B2=D0=B8=D0=B8=20=D0=B4=D0=B8=D1=81=D1=86=D0=B8=D0=BF=D0=BB?=
 =?UTF-8?q?=D0=B8=D0=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 application/classes/Controller/Student/Index.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/application/classes/Controller/Student/Index.php b/application/classes/Controller/Student/Index.php
index 3044a5297..c17a7d6fe 100644
--- a/application/classes/Controller/Student/Index.php
+++ b/application/classes/Controller/Student/Index.php
@@ -24,7 +24,9 @@ class Controller_Student_Index extends Controller_UserEnvi {
             $disciplinesHandled[$i]['Rate'] = $row['Rate'];
             $disciplinesHandled[$i]['MaxRate'] = $row['MaxCurrentRate'];
         }
-        $twig->disciplines = $disciplinesHandled;
+        if ($i != 0) { 
+            $twig->disciplines = $disciplinesHandled;
+        }
         $this->response->body($twig);
     }
 	
-- 
GitLab