summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-06-04 23:40:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-06-04 23:40:40 +0000
commit788cbb263325a9c0405ba22db6ea5a85ced70833 (patch)
tree8290f1c36f8a73baa733b762e91995ca21e99de6 /themes/fledermaus
parent48e06817daf525eb552e064ac94428297d35941b (diff)
* luci/themes: do an explicit check for table data type on result of uci.changes()
Diffstat (limited to 'themes/fledermaus')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index a8ecff7f2f..32d844f016 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/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;