From cdb655a615e05df22c9f2f5370f9ef47d96254a5 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 22 Apr 2014 20:23:09 +0000 Subject: Bug 998017 - Internal error: "Not an ARRAY reference" when using the summarize time feature --- extensions/SiteMapIndex/Extension.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/SiteMapIndex') 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)) { -- cgit v1.2.3-24-g4f1b