* luci/themes: fix admin header template, crashes badly when luci.model.uci.changes...
[project/luci.git] / themes / openwrt.org / luasrc / view / themes / openwrt.org / header.htm
index 71328e4..3ecc8d7 100644 (file)
@@ -121,7 +121,8 @@ end
                        if "admin" == request[1] then
                                require("luci.model.uci") 
                                local ucic = 0
-                               for n, s in pairs(luci.model.uci.changes()) do
+                                local changes = luci.model.uci.changes()
+                                for n, s in pairs(changes) do
                                        for no, o in pairs(s) do
                                                ucic = ucic + 1;
                                        end