diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-09 16:28:19 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-09 16:28:19 +0000 |
commit | 77432eb0479ec101aaa2287394ec8751d589aed2 (patch) | |
tree | 37f3a2de1a7b2e7240e4c30bc9b523c4aa9fe6c7 /libs/uvl/luasrc | |
parent | 0345180f72a9cb4149eb285e44d561d2199fdeb5 (diff) |
* luci/libs/uvl: allow empty strings or undefined options as booleans too
Diffstat (limited to 'libs/uvl/luasrc')
-rw-r--r-- | libs/uvl/luasrc/uvl/datatypes.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/uvl/luasrc/uvl/datatypes.lua b/libs/uvl/luasrc/uvl/datatypes.lua index 971bb9d75c..fc37fa3c69 100644 --- a/libs/uvl/luasrc/uvl/datatypes.lua +++ b/libs/uvl/luasrc/uvl/datatypes.lua @@ -29,6 +29,8 @@ function boolean( val ) return true elseif val == "0" or val == "no" or val == "off" or val == "false" then return true + elseif val == "" or val == nil then + return true end return false |