Skip to content
Snippets Groups Projects
Commit dfac252a authored by deuce's avatar deuce
Browse files

Close div tag when sub has no messages.

parent b4d26e34
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,10 @@ function printBoards() { ...@@ -181,7 +181,10 @@ function printBoards() {
print(msgBase.total_msgs + " messages"); print(msgBase.total_msgs + " messages");
if(msgBase.last_msg > 0) { if(msgBase.last_msg > 0) {
var header = msgBase.get_msg_header(msgBase.last_msg); var header = msgBase.get_msg_header(msgBase.last_msg);
if(!header) continue; if(!header) {
print("</div>");
continue;
}
print("<br>Latest: " + clean_subject(header.subject) + ", by: " + clean_subject(header.from) + " on " + system.timestr(header.when_written_time)); print("<br>Latest: " + clean_subject(header.subject) + ", by: " + clean_subject(header.from) + " on " + system.timestr(header.when_written_time));
} }
print("</div>"); print("</div>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment