summaryrefslogtreecommitdiffstats
path: root/extensions/SiteMapIndex
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-22 22:23:09 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-22 22:23:09 +0200
commitcdb655a615e05df22c9f2f5370f9ef47d96254a5 (patch)
tree0d5d054fb95f20ea7cf95226ada1c56ad3ca3aaa /extensions/SiteMapIndex
parent572c5819d656d63f6b87e8fc54d8f561d6c3b9e3 (diff)
downloadbugzilla-cdb655a615e05df22c9f2f5370f9ef47d96254a5.tar.gz
bugzilla-cdb655a615e05df22c9f2f5370f9ef47d96254a5.tar.xz
Bug 998017 - Internal error: "Not an ARRAY reference" when using the summarize time feature
Diffstat (limited to 'extensions/SiteMapIndex')
-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)) {