[interchange] Prevent parser from eating false values in tag body (#341).

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 50a0ce89f889e764fbeed4ff6a647e353e8b9484
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Tue Aug 31 18:16:41 2010 +0200

    Prevent parser from eating false values in tag body (#341).

 lib/Vend/Parse.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Parse.pm b/lib/Vend/Parse.pm
index 4d4efa9..c43d9f8 100644
--- a/lib/Vend/Parse.pm
+++ b/lib/Vend/Parse.pm
@@ -482,7 +482,7 @@ sub resolve_args {
 	}
 	@list = @{$ref}{@{$Order{$tag}}};
 	push @list, $ref if defined $addAttr{$tag};
-	push @list, (shift || $ref->{body} || '') if $hasEndTag{$tag};
+	push @list, (shift || (defined $ref->{body} ? $ref->{body} : '')) if $hasEndTag{$tag};
 	return @list;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.