diff options
-rw-r--r-- | themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 3 | ||||
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index 2aea59cfdc..40086d9ca7 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -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 diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index 71328e4141..3ecc8d73ca 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -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 |