Skip to content
Snippets Groups Projects
Unverified Commit 8d61bc07 authored by Thomas Steur's avatar Thomas Steur Committed by GitHub
Browse files

Prevent notice script_name not defined

> ( ! )</span> Notice: Undefined index: SCRIPT_NAME in endor/piwik/piwik-php-tracker/PiwikTracker.php on line <i>1815</i>
parent 172c68f9
Branches
No related merge requests found
......@@ -1811,7 +1811,7 @@ class PiwikTracker
}
}
}
if (empty($url)) {
if (empty($url) && isset($_SERVER['SCRIPT_NAME'])) {
$url = $_SERVER['SCRIPT_NAME'];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment