diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig
index bb31e9a06e54801a5e308aa3eec154f3010f72e5..3b97b9547c70d5eb9375b8872fcc410b9493faa5 100644
--- a/~dev_rating/application/views/base.twig
+++ b/~dev_rating/application/views/base.twig
@@ -110,8 +110,6 @@
                 {# see media/js/profile.js, views/profile/*.twig #}
 				<div id="username">{{ User.FirstName }} {{ User.LastName }}</div>
 
-				{% set officeTitle = '' %}
-
 				{% if User.isAdmin %}
 					{% set officeTitle = 'Администрирование' %}
 				{% elseif User.isDean %}
@@ -120,7 +118,7 @@
 					{% set officeTitle = 'Сводные ведомости' %}
 				{% endif %}
 
-				{% if officeTitle != '' %}
+				{% if officeTitle %}
 					{{ HTML.anchor('/office', '<i class="fa fa-university fa-md fa-fw"></i>', {'title': officeTitle })|raw }}
 				{% endif %}