projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* luci/libs/uvl: allow empty strings or undefined options as booleans too
[project/luci.git]
/
libs
/
uvl
/
luasrc
/
uvl
/
datatypes.lua
diff --git
a/libs/uvl/luasrc/uvl/datatypes.lua
b/libs/uvl/luasrc/uvl/datatypes.lua
index
971bb9d
..
fc37fa3
100644
(file)
--- 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