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:
parent
05a638a3d9
commit
de81bec081
2 changed files with 2 additions and 2 deletions
|
@ -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 ""
|
||||
|
|
|
@ -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="#">';
|
||||
|
|
Loading…
Reference in a new issue