From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 10:52:23 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "end" X-Git-Tag: debian/2.1.2-2~81 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=335c5f8674af60403941e13ec7937b3f23bd9431;p=pkg%2Fblosxom.git Avoid "conditional and" for running plugins "end" --- diff --git a/blosxom.cgi b/blosxom.cgi index 0c483e9..7d1daef 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -388,7 +388,11 @@ else { } # Plugins: End -foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('end') and $entries = $plugin->end() } +foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('end') ) { + $entries = $plugin->end(); + } +} # Generate sub generate {