From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:24:13 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "last" X-Git-Tag: v2_1_0~61 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=1fda4e76f5ad09d00e53a478bf694b47c32809f4;p=matthijs%2Fupstream%2Fblosxom.git Avoid "conditional and" for running plugins "last" --- diff --git a/blosxom.cgi b/blosxom.cgi index 3138fcc..f45aff7 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -538,7 +538,11 @@ sub generate { $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