diff --git a/Application/Files/PiwikTracker.php b/Application/Files/PiwikTracker.php index d7812de..fdda324 100644 --- a/Application/Files/PiwikTracker.php +++ b/Application/Files/PiwikTracker.php @@ -520,7 +520,7 @@ protected static function domainFixup($domain) if (strlen($domain) > 0) { $dl = strlen($domain) - 1; // remove trailing '.' - if ($domain{$dl} === '.') { + if ($domain[$dl] === '.') { $domain = substr($domain, 0, $dl); } // remove leading '*'