From 579975840f38c84f164daa8304a13ee1649e0a19 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 6 Jan 2012 16:30:29 +0000 Subject: [PATCH] luci-0.10: merge r8151 --- modules/admin-full/luasrc/controller/admin/network.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index b02cfd576..75f952944 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -206,7 +206,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 -- 2.25.1