More linting and fixing

This commit is contained in:
jgen
2017-03-08 23:52:31 -08:00
parent fc0945354d
commit ede2fcf4eb
3 changed files with 12 additions and 7 deletions

View File

@@ -164,7 +164,7 @@ class Layout {
$flash = $page->get_cookie("flash_message");
$flash_html = "";
if($flash) {
if(!empty($flash)) {
$flash_html = "<b id='flash'>".nl2br(html_escape($flash))." <a href='#' onclick=\"\$('#flash').hide(); return false;\">[X]</a></b>";
}