* CBI updates
[project/luci.git] / src / ffluci / util.lua
index b219be130e890af1c521fcce30e32cbe7ad73bb9..8a526173d78af4bcb254999b08008786ce1ca4f8 100644 (file)
@@ -161,7 +161,7 @@ function validate(value, cast_number, cast_int, valid)
        if type(valid) == "function" then
                value = valid(value)
        elseif type(valid) == "table" then
        if type(valid) == "function" then
                value = valid(value)
        elseif type(valid) == "table" then
-               if not ffluci.util.contains(valid, value) then
+               if not contains(valid, value) then
                        value = nil
                end
        end
                        value = nil
                end
        end