projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid "conditional and" for testing if $date should be added to $output
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 2e87b759c77a8acbaebd1749e6cf1215df584858..ee085a38503133baeabd150cff5e7d849500f66d 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-515,7
+515,10
@@
sub generate {
$date = &$interpolate($date);
$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")) {
use vars qw/ $title $body $raw /;
if (-f "$path_file" && $fh->open("< $path_file")) {