Update networktool.php

This commit is contained in:
Namhyeon Go 2022-09-16 16:02:35 +09:00 committed by GitHub
parent 161029471a
commit 85ddf36fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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