diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-04 21:01:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-04 21:01:48 +0000 |
commit | 25e71a2acf91c084bf18049fc0d159fa19673876 (patch) | |
tree | c673cc979ac3a19e15c08dbb2d794ef523f0cb4c /themes/fledermaus | |
parent | 346ad261bbb13a88c5df040092a4072c9af0c9b5 (diff) |
* luci/themes: fix admin header template, crashes badly when luci.model.uci.changes() returns nil (shouldn't we move this code snipped into a helper function or sth. like that?)
Diffstat (limited to 'themes/fledermaus')
-rw-r--r-- | themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index 2aea59cfd..40086d9ca 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 |