diff options
Diffstat (limited to 'views/header.ejs')
-rw-r--r-- | views/header.ejs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/header.ejs b/views/header.ejs index aed34d0..337290a 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -16,7 +16,7 @@ <span><a href="/forum">Forum</a></span> <% if (user) { - let unread = user.unread(); + let unread = user.unread | 0; if (unread > 0) { %><span><a href="/inbox">Inbox (<%= unread %>)</a></span><% } else { @@ -33,7 +33,7 @@ <div class="main"> <h1><%= title %></h1> <% - if (typeof message !== 'undefined' && message.length > 0) { - %><p class="error"><%= Array.isArray(message) ? message.join("\n") : message %></p><% + if (typeof flash !== 'undefined' && flash.length > 0) { + %><p class="error"><%= Array.isArray(flash) ? flash.join("\n") : flash %></p><% } %> |