From: Jo-Philipp Wich Date: Tue, 4 Nov 2008 23:56:21 +0000 (+0000) Subject: * luci-0.8: merge r3712 X-Git-Tag: 0.8.2~47 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=4dfa176aad01284a74c8fb8684b672a9c3321e23;p=project%2Fluci.git * luci-0.8: merge r3712 --- diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index b34f66bc1..5c6ea05f8 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -366,7 +366,7 @@ function UVL._validate_option( self, option, nodeps ) end local w = tonumber(v) - + if option:scheme('minimum') then if not w or w < option:scheme('minimum') then return false, option:error(ERR.OPT_RANGE(option)) @@ -378,12 +378,6 @@ function UVL._validate_option( self, option, nodeps ) return false, option:error(ERR.OPT_RANGE(option)) end end - - if option:scheme('max_nil') then - if v and (not w or w > tonumber(option:scheme('max_nil'))) then - return false, option:error(ERR.OPT_RANGE(option)) - end - end end end