Changeset 8784

Show
Ignore:
Timestamp:
06/26/12 22:49:24 (12 months ago)
Author:
jow
Message:

libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple networks

Files:
1 modified

Legend:

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

    r8780 r8784  
    783783        _uci_real:foreach("wireless", "wifi-iface", 
    784784            function(s) 
    785                 if s.network == self.sid then 
    786                     rv = false 
    787                     return false 
     785                local n 
     786                for n in utl.imatch(s.network) do 
     787                    if n == self.sid then 
     788                        rv = false 
     789                        return false 
     790                    end 
    788791                end 
    789792            end)