Skip to content

Commit

Permalink
Update PiwikTracker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored Dec 21, 2019
1 parent 1082855 commit cabcdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PiwikTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ protected static function getCurrentScriptName()
$url = '/';
}

if ($url[0] !== '/') {
if (!empty($url) && $url[0] !== '/') {
$url = '/' . $url;
}

Expand Down

0 comments on commit cabcdc4

Please sign in to comment.