diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-04 23:40:40 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-04 23:40:40 +0000 |
commit | 788cbb263325a9c0405ba22db6ea5a85ced70833 (patch) | |
tree | 8290f1c36f8a73baa733b762e91995ca21e99de6 /themes/openwrt.org | |
parent | 48e06817daf525eb552e064ac94428297d35941b (diff) |
* luci/themes: do an explicit check for table data type on result of uci.changes()
Diffstat (limited to 'themes/openwrt.org')
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 2 |
1 files changed, 1 insertions, 1 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 ee784f24b..f18d0bce3 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -122,7 +122,7 @@ end require("luci.model.uci") local ucic = 0 local changes = luci.model.uci.changes() - if changes then + if type(changes) == "table" then -- XXX: sometimes string or nil / needs investigation for n, s in pairs(changes) do for no, o in pairs(s) do ucic = ucic + 1; |