diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-07 02:55:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-07 02:55:42 +0000 |
commit | 885e54007fdaaaa8d4972e904685c6a0ff609e50 (patch) | |
tree | 976cff2b155d84860abbe69a5a5557087395d9c6 /libs/uvl/luasrc/uvl.lua | |
parent | 98ff081c9f67d876349a56a1b75e1fae51bc15e2 (diff) |
* luci/libs/uvl: implement default value option for variable sections
Diffstat (limited to 'libs/uvl/luasrc/uvl.lua')
-rw-r--r-- | libs/uvl/luasrc/uvl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index f40063c7b4..089789a5aa 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -1119,7 +1119,7 @@ end --- Get the value of this option. -- @return The associated configuration value function option.value(self) - local v = self:config() + local v = self:config() or self:scheme('default') if v and self:scheme('multival') then v = luci.util.split( v, "%s+", nil, true ) end |