Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Diagnostics/Diagnostic/PageSpeedCheck.php')
-rw-r--r--plugins/Diagnostics/Diagnostic/PageSpeedCheck.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php b/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php
index 8f456a04bb..495e13ee45 100644
--- a/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php
+++ b/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php
@@ -72,9 +72,7 @@ class PageSpeedCheck implements Diagnostic
// If the test failed, we assume Page speed is not enabled
return false;
}
-
- $headers = $page['headers'];
-
- return isset($headers['X-Mod-Pagespeed']) || isset($headers['X-Page-Speed']);
+
+ return isset($page['headers']['X-Mod-Pagespeed']) || isset($page['headers']['X-Page-Speed']);
}
}