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 2385cc3..587cd63 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