From: Wolfram Schneider Date: Tue, 27 Apr 2010 16:33:47 +0000 (+0200) Subject: Zero is a valid value for an tag. bug #3399 X-Git-Tag: CPAN-v1.02~76^2~12 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=91aef24e6ccdd1dd937388ccbfc75e32c62e8c2f;p=irspy-moved-to-github.git Zero is a valid value for an tag. bug #3399 --- 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";