Skip to content

Node.js based forum software built for the modern web

only add divider if there are results

psychobunny13dd6865219d
diff --git a/public/src/forum/admin/footer.js b/public/src/forum/admin/footer.js
index d09f98e2fa..ecd54295a0 100644
--- a/public/src/forum/admin/footer.js
+++ b/public/src/forum/admin/footer.js
@@ -45,8 +45,10 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
}
}
}
-
- menuItems.append('<li role="presentation" class="divider"></li>');
+
+ if (menuItems.html() !== '') {
+ menuItems.append('<li role="presentation" class="divider"></li>');
+ }
}
menuItems.append('<li role="presentation"><a role="menuitem" href="' + RELATIVE_PATH + '/search/' + $input.val() + '">Search the forum for "' + $input.val() + '"</a></li>');