libs/uci: Cursor.delete_all: fix logical condition
authorSteven Barth <steven@midlink.org>
Sun, 14 Sep 2008 19:00:52 +0000 (19:00 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 14 Sep 2008 19:00:52 +0000 (19:00 +0000)
libs/uci/luasrc/model/uci.lua

index 2385cc37ca3f3312773069947fdafed717d3847c..587cd63c0bba6fe5c8753fe8ee08bd2e1f8dbe22 100644 (file)
@@ -77,7 +77,7 @@ function Cursor.delete_all(self, config, stype, comparator)
                local tbl = comparator
                comparator = function(section)
                        for k, v in pairs(tbl) do
-                               if not section[k] == v then
+                               if section[k] ~= v then
                                        return false
                                end
                        end