From: Jo-Philipp Wich Date: Tue, 26 Jun 2012 21:49:24 +0000 (+0000) Subject: libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple... X-Git-Tag: 0.11.0~573 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=61883f2c3fdad559dd1362ca76c258793cd32c82;p=project%2Fluci.git libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple networks --- diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index d062164335..1764a3d41d 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -782,9 +782,12 @@ function protocol.is_empty(self) _uci_real:foreach("wireless", "wifi-iface", function(s) - if s.network == self.sid then - rv = false - return false + local n + for n in utl.imatch(s.network) do + if n == self.sid then + rv = false + return false + end end end)