luci-0.10: merge r8151

This commit is contained in:
Jo-Philipp Wich 2012-01-06 16:30:29 +00:00
parent 0b6238c7f2
commit 579975840f

View file

@ -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