diff --git a/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php b/plugins/Diagnostics/Diagnostic/PageSpeedCheck.php index 8f456a04bbba1f948b7c7fe4df9b43f78fd01396..495e13ee4573966829ec170dec04d29d313d3180 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']); } }