summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/SiteMapIndex/Extension.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/SiteMapIndex/Extension.pm b/extensions/SiteMapIndex/Extension.pm
index 23c460fb8..4cc384b48 100644
--- a/extensions/SiteMapIndex/Extension.pm
+++ b/extensions/SiteMapIndex/Extension.pm
@@ -45,10 +45,10 @@ sub template_before_process {
my ($self, $args) = @_;
my ($vars, $file) = @$args{qw(vars file)};
- return if !$file eq 'global/header.html.tmpl';
- return unless (exists $vars->{bug} or exists $vars->{bugs});
+ return if $file ne 'global/header.html.tmpl';
+ return unless (exists $vars->{bug} || exists $vars->{bugs});
my $bugs = exists $vars->{bugs} ? $vars->{bugs} : [$vars->{bug}];
- return if !ref $bugs eq 'ARRAY';
+ return if ref $bugs ne 'ARRAY';
foreach my $bug (@$bugs) {
if (!bug_is_ok_to_index($bug)) {