<%
if "admin" == request[1] then
require("luci.model.uci")
- local ucic = luci.model.uci.changes()
- if ucic then
- ucic = #luci.util.split(ucic)
+ local ucic = 0
+ local changes = luci.model.uci.changes()
+ 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;
+ end
+ end
end
%>
<div><%:config Konfiguration%>
</div>
<% end %>
</div>
- <div id="content">
\ No newline at end of file
+ <div id="content">