summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-08-24 18:33:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-08-24 18:33:25 +0000
commita0b9f952e546928371acd5e47e874986f996b7b0 (patch)
treeb73d3414c55939a4c4f9e58bbc41a69a493b33b0 /libs/uvl/luasrc
parente124eec0e86584a52ca1559459f58a99c5a0847c (diff)
* luci/libs: uvl: store valueof values as associative table
Diffstat (limited to 'libs/uvl/luasrc')
-rw-r--r--libs/uvl/luasrc/uvl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua
index cc1d8b9d6..ed0bd13e1 100644
--- a/libs/uvl/luasrc/uvl.lua
+++ b/libs/uvl/luasrc/uvl.lua
@@ -709,9 +709,9 @@ function UVL._read_reference( self, values )
return nil, 'Illegal reference "%s" to an anonymous section'
% value
end
- table.insert( val, k )
+ val[k] = k -- XXX: title/description would be nice
elseif v[ref[3]] then
- table.insert( val, v[ref[3]] )
+ val[v[ref[3]]] = v[ref[3]] -- XXX: dito
end
end
end