Changeset 8151

Show
Ignore:
Timestamp:
01/06/12 17:28:54 (17 months ago)
Author:
jow
Message:

modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/controller/admin/network.lua

    r8050 r8151  
    220220            ntm:del_wifinet(network) 
    221221            ntm:commit("wireless") 
    222             if net:is_empty() then 
     222            if net and net:is_empty() then 
    223223                ntm:del_network(net:name()) 
    224224                ntm:commit("network")