]> git.deb.at Git - pkg/blosxom.git/commitdiff
Avoid "conditional and" for adding header to $output
authorBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 08:28:38 +0000 (08:28 +0000)
committerBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 08:28:38 +0000 (08:28 +0000)
blosxom.cgi

index f45aff7d262d3b4c8c5bf427d1c86b2acbe71045..bba92f18a07e149f5516054e10f088d048b9e713 100755 (executable)
@@ -547,7 +547,7 @@ sub generate {
   } # End skip
 
   # Finally, add the header, if any and running dynamically
-  $static_or_dynamic eq 'dynamic' and $header and $output = header($header) . $output;
+  $output = header($header) . $output if ($static_or_dynamic eq 'dynamic' and $header);
   
   $output;
 }