summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-06 16:28:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-06 16:28:54 +0000
commit1e0e458ff3a2ab0ff9b415c5b2ae1a4977aa1463 (patch)
tree7d91da6e2ebabaf8544a637c40e2a44dc51de7ce /modules/admin-full/luasrc/controller
parent862176ee072e2a3c37e8e72a627aba6735419d05 (diff)
modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-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 a298443645..5a102668df 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