From 09939733268887c1874f22c5648a817e11f7ab47 Mon Sep 17 00:00:00 2001
From: PavelBegunkov <asml.Silence@gmail.com>
Date: Fri, 29 Aug 2014 19:00:33 +0400
Subject: [PATCH] fix

---
 db/StoredProcedures.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/StoredProcedures.sql b/db/StoredProcedures.sql
index 741e5728c..51a8910cc 100644
--- a/db/StoredProcedures.sql
+++ b/db/StoredProcedures.sql
@@ -1560,7 +1560,7 @@ BEGIN
 		RETURN -1;
 	END IF;
 
-	IF AuthorID = BindingTeacher
+	IF AuthorID = BindingTeacher THEN
 		RETURN -1;
 	END IF;
 
-- 
GitLab