Show
Ignore:
Timestamp:
11/12/11 12:27:10 (18 months ago)
Author:
jow
Message:

libs/core: fix removal of wifi networks without interface attached (OpenWrt? #10400)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/core/luasrc/model/network.lua

    r7844 r7922  
    14121412 
    14131413function wifinet.get_network(self) 
    1414     if _uci_real:get("network", self.iwdata.network) == "interface" then 
    1415         return network(self.iwdata.network) 
     1414    local net = tostring(self.iwdata.network) 
     1415    if net and _uci_real:get("network", net) == "interface" then 
     1416        return network(net) 
    14161417    end 
    14171418end