Diff

mod_vjud/vcard.lib.lua @ 788:aeb0999f12fa

mod_vjud/vcard.lib: Iterate on tags instead of items (thanks mva)
author Kim Alvefur <zash@zash.se>
date Thu, 09 Aug 2012 20:16:09 +0200
parent 734:81de1e446bfe
child 806:d15a9eaa63ea
line wrap: on
line diff
--- 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