X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=general%2Finterpolate_fancy;fp=general%2Finterpolate_fancy;h=4b8b759777373a01aa5093a56b6d6b4151caeb2e;hb=57919bf75b3031f3abab6d697de2ce354588a38d;hp=c4557698c18a740220a1f35ed99be4668e1d4ab5;hpb=5576fc5d9d408be336cbd4d17b05f1d3612da9f0;p=matthijs%2Fupstream%2Fblosxom-plugins.git diff --git a/general/interpolate_fancy b/general/interpolate_fancy index c455769..4b8b759 100644 --- a/general/interpolate_fancy +++ b/general/interpolate_fancy @@ -155,6 +155,11 @@ sub do_interpolate { sub _test { my($variable, $attr) = @_; + # If the variable is not defined, treat it as the empty string in + # comparisons below + if (!defined $variable) { + $variable = ''; + } my $attributes = interpolate_fancy::_attributes($attr); defined $attributes->{eq} and return $variable eq $attributes->{eq};