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~54^2~21^2~12 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6ae25ea69c0e8da30fc8c2c75c273dcaa03194ca;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";