fix for empty message bases on www

This commit is contained in:
Andrew Pamment 2018-10-18 12:35:39 +10:00
parent 999ec8871d
commit 9b20880e66

View File

@ -134,7 +134,7 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i
if (mhrs == NULL) {
stralloc_cats(&page, "<h3>No Messages</h3>\n");
}
} else {
stralloc_cats(&page, "<div class=\"div-table\">\n");
@ -204,9 +204,10 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i
}
stralloc_cats(&page, buffer);
}
free_message_headers(mhrs);
}
stralloc_0(&page);
free_message_headers(mhrs);
return page.s;
}