From 160af1897856070b8cb46bc681f35605825e9f9a Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 20 Jan 2022 17:12:00 -0800 Subject: [PATCH] Ignore empty alerts --- files/usr/lib/lua/aredn/html.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/usr/lib/lua/aredn/html.lua b/files/usr/lib/lua/aredn/html.lua index ace19eb9..58b5767e 100644 --- a/files/usr/lib/lua/aredn/html.lua +++ b/files/usr/lib/lua/aredn/html.lua @@ -80,10 +80,10 @@ function html.alert_banner() html.print("
!!!! UNTESTED HARDWARE !!!!
") end - if aredn_message then + if aredn_message and #aredn_message > 0 then html.print("
AREDN Alert(s):
" .. aredn_message .. "
") end - if local_message then + if local_message and #local_message > 0 then html.print("
Local Alert(s):
" .. local_message .. "
") end