* luci/themes: oops I forgot the most important piece of code - fix last commit
[project/luci.git] / themes / fledermaus / luasrc / view / themes / fledermaus / header.htm
index 40086d9..a8ecff7 100644 (file)
@@ -122,9 +122,11 @@ end
                                require("luci.model.uci") 
                                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;
+                               if changes then
+                                       for n, s in pairs(changes) do
+                                               for no, o in pairs(s) do
+                                                       ucic = ucic + 1;
+                                               end
                                        end
                                end
                %>