modules/niu: fix possible sdk crash in overview page
[project/luci.git] / modules / niu / luasrc / niulib.lua
index dc3df5e..73918a8 100644 (file)
@@ -39,7 +39,7 @@ function eth_get_available(except)
 end
 
 function eth_get_bridged(except)
-       local devs = state:get("network", except, "device")
+       local devs = state:get("network", except, "device") or ""
        
        local ifs = {}
        local cnt = 0