summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm8
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm8
2 files changed, 10 insertions, 6 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 40086d9ca..a8ecff7f2 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -122,9 +122,11 @@ end
require("luci.model.uci")
local ucic = 0
local changes = luci.model.uci.changes()
- for n, s in pairs(changes) do
- for no, o in pairs(s) do
- ucic = ucic + 1;
+ if changes then
+ for n, s in pairs(changes) do
+ for no, o in pairs(s) do
+ ucic = ucic + 1;
+ end
end
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 3ecc8d73c..ee784f24b 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -122,9 +122,11 @@ end
require("luci.model.uci")
local ucic = 0
local changes = luci.model.uci.changes()
- for n, s in pairs(changes) do
- for no, o in pairs(s) do
- ucic = ucic + 1;
+ if changes then
+ for n, s in pairs(changes) do
+ for no, o in pairs(s) do
+ ucic = ucic + 1;
+ end
end
end
%>