From: Jo-Philipp Wich Date: Fri, 6 Jan 2012 16:30:29 +0000 (+0000) Subject: luci-0.10: merge r8151 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=579975840f38c84f164daa8304a13ee1649e0a19;p=project%2Fluci.git luci-0.10: merge r8151 --- diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index b02cfd5766..75f9529441 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