From 91aef24e6ccdd1dd937388ccbfc75e32c62e8c2f Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 27 Apr 2010 18:33:47 +0200 Subject: [PATCH] Zero is a valid value for an tag. bug #3399 --- lib/ZOOM/IRSpy/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index 4c73adf..2f76045 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -352,7 +352,7 @@ sub modify_xml_document { } } else { - next if !$value; # No need to create a new empty node + next if !defined $value; # No need to create a new empty node my($ppath, $selector) = $xpath =~ /(.*)\/(.*)/; dom_add_node($xc, $ppath, $selector, $value, @addAfter); #print "New $key ($xpath) = '$value'
\n"; -- 1.7.10.4