summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller/admin/network.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/network.lua')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index a29844364..5a102668d 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -219,7 +219,7 @@ function wifi_delete(network)
luci.sys.call("env -i /sbin/wifi down %q >/dev/null" % dev:name())
ntm:del_wifinet(network)
ntm:commit("wireless")
- if net:is_empty() then
+ if net and net:is_empty() then
ntm:del_network(net:name())
ntm:commit("network")
end