Skip to content

Commit c59c835

Browse files
committed
Fix inverse condition
1 parent 5733a82 commit c59c835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Templates/Includes/header.inc.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function _header_nav_html($nav)
193193
if (!Authentication::$user)
194194
{
195195
_line('<a class="btn btn-sm btn-outline-secondary my-2 my-lg-0" tabindex="-2" href="%s">Log&nbsp;in</a>', UrlFormatter::format('/user/login'));
196-
if (Config::get('bnetdocs.user_register_disabled'))
196+
if (!Config::get('bnetdocs.user_register_disabled'))
197197
{
198198
_line('<a class="btn btn-sm btn-outline-success my-2 my-lg-0 ml-2" tabindex="-1" href="%s">Register</a>', UrlFormatter::format('/user/register'));
199199
}

0 commit comments

Comments
 (0)