Merge pull request #3872 from AmritasyaPutra/patch-1
Fix for PHP 8.1 Warning
This commit is contained in:
commit
fdda8c3307
|
@ -1379,6 +1379,7 @@ function getGoogleQuery() {
|
|||
$url = parse_url($INPUT->server->str('HTTP_REFERER'));
|
||||
|
||||
// only handle common SEs
|
||||
if(!array_key_exists('host', $url)) return '';
|
||||
if(!preg_match('/(google|bing|yahoo|ask|duckduckgo|babylon|aol|yandex)/',$url['host'])) return '';
|
||||
|
||||
$query = array();
|
||||
|
|
Loading…
Reference in New Issue