From d6c63378cfe2403fae3ff11eea5d5964d3db46c5 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 4 Jan 2010 21:02:43 +0100 Subject: [PATCH] Only mangle $blosxom::title and body if defined. This fixes a warning when the do_interpolate route is called to interpolate non-story templates. --- general/interpolate_fancy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/general/interpolate_fancy b/general/interpolate_fancy index 4b8b759..45208d2 100644 --- a/general/interpolate_fancy +++ b/general/interpolate_fancy @@ -109,8 +109,8 @@ sub do_interpolate { # Halt recursive interpolation of story $body # by mangling interpolation tags (to be unmangled in a moment) unless ($recurse_into_story) { - $blosxom::title =~ s/<(\@|\??\$)/<#INTERPOLATE_FANCY_DEFANG#$1/gsi; - $blosxom::body =~ s/<(\@|\??\$)/<#INTERPOLATE_FANCY_DEFANG#$1/gsi; + $blosxom::title =~ s/<(\@|\??\$)/<#INTERPOLATE_FANCY_DEFANG#$1/gsi if defined $blosxom::title; + $blosxom::body =~ s/<(\@|\??\$)/<#INTERPOLATE_FANCY_DEFANG#$1/gsi if defined $blosxom::body; } my $template = shift; -- 2.30.2