Skip to content

Commit

Permalink
Merge pull request #3872 from AmritasyaPutra/patch-1
Browse files Browse the repository at this point in the history
Fix for PHP 8.1 Warning
  • Loading branch information
splitbrain committed Feb 2, 2023
2 parents 8f5f1b8 + c787540 commit fdda8c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/common.php
Expand Up @@ -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();
Expand Down

0 comments on commit fdda8c3

Please sign in to comment.