Avoid "conditional and" for adding header to $output
[matthijs/upstream/blosxom.git] / 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;
 }