1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00

Fix status page

This commit is contained in:
Ycarus 2018-12-18 14:49:18 +01:00
parent 05a638a3d9
commit de81bec081
2 changed files with 2 additions and 2 deletions

View file

@ -46,9 +46,9 @@ function wizard_add()
if delete_server ~= "" then
for serverdel, _ in pairs(delete_server) do
luci.sys.call("uci -q del openmptcprouter." .. serverdel)
end
gostatus = false
end
end
-- Add new interface
local add_interface = luci.http.formvalue("add_interface") or ""

View file

@ -53,7 +53,7 @@
var status = document.getElementById('openmptcprouter_status');
var temp = '<figure class="tree">';
temp += '<ul>';
if (mArray.openmptcprouter)
if (mArray !== null && mArray.openmptcprouter)
{
temp += '<li class="remote-from-lease">';
temp += '<a href="#">';