modules: Make luci-base sufficient to use luci apps
[project/luci.git] / modules / luci-mod-admin-full / luasrc / model / cbi / admin_network / ifaces.lua
index 06bce01fc4459adb2f8696b0e9c67d99424c51d8..8be354b448c17a4c2a943b86c8e0661ab43fea85 100644 (file)
@@ -53,7 +53,7 @@ local function get_ifstate(name, option)
 
        m.uci:foreach("luci", "ifstate", function (s)
                if s.interface == name then
-                       val = m.uci:get("luci", s[".name"], option)
+                       val = s[option]
                        return false
                end
        end)