* luci/themes: do an explicit check for table data type on result of uci.changes()
[oweals/luci.git] / themes / openwrt.org / luasrc / view / themes / openwrt.org / header.htm
index ee784f24b31db309a8d253f3cbf81a3b738dc397..f18d0bce3944fae5649ccf22f3f98c0721ba7133 100644 (file)
@@ -122,7 +122,7 @@ end
                                require("luci.model.uci") 
                                local ucic = 0
                                 local changes = luci.model.uci.changes()
-                               if changes then
+                               if type(changes) == "table" then        -- XXX: sometimes string or nil / needs investigation
                                        for n, s in pairs(changes) do
                                                for no, o in pairs(s) do
                                                        ucic = ucic + 1;