From b871cadf34ed0c78e7619011d44029a1af269b4c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 Jun 2008 21:04:51 +0000 Subject: * luci/themes: oops I forgot the most important piece of code - fix last commit --- themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'themes/openwrt.org/luasrc') 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 %> -- cgit v1.2.3