[interchange] fixed detection of labels for [loop acclist=1] so 0 is recognized as label

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 27676dacd741b4fbdc2509be233c1a5487636d58
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Thu Apr 15 14:35:23 2010 +0200

    fixed detection of labels for [loop acclist=1] so 0 is recognized as label
    and strings consisting of whitespace are discarded

 lib/Vend/Interpolate.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Interpolate.pm b/lib/Vend/Interpolate.pm
index 50dd129..d4e2a3b 100644
--- a/lib/Vend/Interpolate.pm
+++ b/lib/Vend/Interpolate.pm
@@ -4907,7 +4907,7 @@ sub tag_loop_list {
 			my @items = split /\s*,\s*/, $list;
 			for(@items) {
 				my ($o, $l) = split /=/, $_;
-				$l = $o unless $l;
+				$l = $o unless $l =~ /\S/;
 				push @rows, [ $o, $l ];
 			}
 		};
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.