* luci/themes: oops I forgot the most important piece of code - fix last commit
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Jun 2008 21:04:51 +0000 (21:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Jun 2008 21:04:51 +0000 (21:04 +0000)
themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 40086d9ca760e135cb1c6c12df2ce27b9a3df4ce..a8ecff7f2f1c7b58b8c5749b56c7fd5192cfccc1 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
                %>
index 3ecc8d73ca1e0ba17276ff142f1fe469a644182c..ee784f24b31db309a8d253f3cbf81a3b738dc397 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
                %>