Update networktool.php

This commit is contained in:
Namhyeon Go 2022-09-16 16:11:12 +09:00 committed by GitHub
parent 058449948f
commit 53618152e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ if(!is_fn("get_network_outbound_addr")) {
if(!is_fn("detect_perf_agent")) {
function detect_perf_agent() {
$evt = get_network_event();
$agent = $ent['agent'];
return preg_match('(PingdomPageSpeed|GTmetrix)', $agent) === 1);
$agent = $evt['agent'];
return preg_match('(PingdomPageSpeed|GTmetrix)', $agent) === 1;
}
}