From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 10:12:27 +0000 (+0000) Subject: Avoid "conditional and" for testing if $date should be added to $output X-Git-Tag: debian/2.1.2-2~83 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=aba7cd50d01142480d706bba489f0076bab740f9;p=pkg%2Fblosxom.git Avoid "conditional and" for testing if $date should be added to $output --- diff --git a/blosxom.cgi b/blosxom.cgi index 2e87b75..ee085a3 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -515,7 +515,10 @@ sub generate { $date = &$interpolate($date); - $curdate ne $date and $curdate = $date and $output .= $date; + if ( $date && $curdate ne $date ) { + $curdate = $date; + $output .= $date; + } use vars qw/ $title $body $raw /; if (-f "$path_file" && $fh->open("< $path_file")) {