mod_vjud/vcard.lib: Iterate on tags instead of items (thanks mva)
authorKim Alvefur <zash@zash.se>
Thu, 09 Aug 2012 20:16:09 +0200
changeset 788 aeb0999f12fa
parent 787 cec49ee88c23
child 789 7e40d6680093
mod_vjud/vcard.lib: Iterate on tags instead of items (thanks mva)
mod_vjud/vcard.lib.lua
--- a/mod_vjud/vcard.lib.lua	Thu Aug 09 19:49:50 2012 +0200
+++ b/mod_vjud/vcard.lib.lua	Thu Aug 09 20:16:09 2012 +0200
@@ -238,8 +238,8 @@
 		elseif prop_def.values then --array
 			local value_names = prop_def.values;
 			if value_names.behaviour == "repeat-last" then
-				for i=1,#item do
-					t_insert(prop, item[i]:get_text() or "");
+				for i=1,#item.tags do
+					t_insert(prop, item.tags[i]:get_text() or "");
 				end
 			else
 				for i=1,#value_names do