diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index fde40832c..e97064d5f 100644
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -58,7 +58,7 @@
{{ endif }}
- {{ if $nav.register }}
{{ endif }}
+ {{ if $nav.register }}{{ endif }}
{{ if $nav.messages }}
diff --git a/view/tpl/smarty3/nav.tpl b/view/tpl/smarty3/nav.tpl
index 6faf26176..beddc9109 100644
--- a/view/tpl/smarty3/nav.tpl
+++ b/view/tpl/smarty3/nav.tpl
@@ -63,7 +63,7 @@
{{/if}}
- {{if $nav.register}}{{/if}}
+ {{if $nav.register}}{{/if}}
{{if $nav.messages}}