Forum Moderators: coopster
PHP Warning: Illegal string offset '@attributes' in /home/foo/bar.php on line 169, referer: https://www.example.com/
PHP Warning: Illegal string offset 'href' in /home/foo/bar.php on line 169, referer: https://www.example.com/ if ($key['link']['@attributes']['href'] &&
// make sure it's not an array
!is_array($key['link']['@attributes']['href']) &&
// if it's less than 7 characters then it should be ignored
strlen($key['link']['@attributes']['href']) > 7) {
$link = str_replace('&', '&', $key['link']['@attributes']['href']);
parse_str($link, $ga_url);
if ($ga_url['url'])
$key['link'] = $ga_url['url'];
else
$key['link'] = $key['link']['@attributes']['href'];
}