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 running plugins "last"
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 3138fcc7e24a6918edbeddb9505bbc3d4c2bbed8..f45aff7d262d3b4c8c5bf427d1c86b2acbe71045 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-538,7
+538,11
@@
sub generate {
$output .= $foot;
# Plugins: Last
$output .= $foot;
# Plugins: Last
- foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('last') and $entries = $plugin->last() }
+ foreach my $plugin (@plugins) {
+ if ( $plugins{$plugin} > 0 and $plugin->can('last') ) {
+ $entries = $plugin->last();
+ }
+ }
} # End skip
} # End skip