From: Steven Barth Date: Sun, 14 Sep 2008 19:00:52 +0000 (+0000) Subject: libs/uci: Cursor.delete_all: fix logical condition X-Git-Tag: 0.9.0~1310 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56ccdb78fa669d86c15c5f55c457dd236bb66263;p=oweals%2Fluci.git libs/uci: Cursor.delete_all: fix logical condition --- diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua index 2385cc37c..587cd63c0 100644 --- a/libs/uci/luasrc/model/uci.lua +++ b/libs/uci/luasrc/model/uci.lua @@ -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