* luci/themes: fix admin header template, crashes badly when luci.model.uci.changes...
[project/luci.git] / themes / fledermaus / luasrc / view / themes / fledermaus / header.htm
index cb37855..40086d9 100644 (file)
@@ -120,9 +120,12 @@ end
                <%
                        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()
+                               for n, s in pairs(changes) do
+                                       for no, o in pairs(s) do
+                                               ucic = ucic + 1;
+                                       end
                                end
                %>
                <div><%:config Konfiguration%>
@@ -138,4 +141,4 @@ end
                </div>
                <% end %>
        </div>
-       <div id="content">
\ No newline at end of file
+       <div id="content">