Skip to content

Commit

Permalink
Check if var is present on local object (openhab#430)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
  • Loading branch information
digitaldan authored Feb 20, 2023
1 parent 313390d commit 28e579d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<% } %>
<li><a href="/notifications" class="firstLevel <% if (section == 'notifications') { %>active<% } %>">Notifications</a></li>
<% } %>
<% if (user) if (openhabstatus) { %>
<% if (user) if (locals.openhabstatus) { %>
<% if (openhabstatus == 'online') { %>
<li class="openhab-online">
<a href="/events?source=openhab" title="Since <%= date_util(openhablastonline, timeZone).toRelativeCalendar()%>">Online</a>
Expand Down

0 comments on commit 28e579d

Please sign in to comment.