changeset 1102:bfde5e5318d7

mod_mam/rsm.lib: Fix parsing of empty before tag
author Kim Alvefur <zash@zash.se>
date Mon, 08 Jul 2013 12:26:19 +0200 (2013-07-08)
parents 479df3e0b012
children 59657e03c25c
files mod_mam/rsm.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam/rsm.lib.lua	Mon Jul 08 12:19:53 2013 +0200
+++ b/mod_mam/rsm.lib.lua	Mon Jul 08 12:26:19 2013 +0200
@@ -18,7 +18,8 @@
 	element_parsers = {
 		after = xs_string;
 		before = function(st)
-			return st:get_text() or true;
+			local text = st:get_text();
+			return text == "" or text;
 		end;
 		max = xs_int;
 		index = xs_int;