summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt.org/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-06-04 21:04:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-06-04 21:04:51 +0000
commitb871cadf34ed0c78e7619011d44029a1af269b4c (patch)
tree7061b2eb9c5c6b2f0408a05d2bacf086abeb7622 /themes/openwrt.org/luasrc
parent25e71a2acf91c084bf18049fc0d159fa19673876 (diff)
* luci/themes: oops I forgot the most important piece of code - fix last commit
Diffstat (limited to 'themes/openwrt.org/luasrc')
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm8
1 files changed, 5 insertions, 3 deletions
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 3ecc8d73ca..ee784f24b3 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
%>