From: Steven Barth Date: Sat, 7 Mar 2009 16:28:27 +0000 (+0000) Subject: Fixed last commit X-Git-Tag: 0.9.0~618 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=30b7bc7c623dbef9683b1ec1762a78bd0b6d684d Fixed last commit --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 483b7b276..062084f86 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -639,7 +639,7 @@ local function _cbi(self, ...) res.autoapply = config.autoapply end local cstate = res:parse() - if cstate and not state or cstate < state then + if cstate and (not state or cstate < state) then state = cstate end end @@ -709,7 +709,7 @@ local function _form(self, ...) for i, res in ipairs(maps) do local cstate = res:parse() - if cstate and not state or cstate < state then + if cstate and (not state or cstate < state) then state = cstate end end