Commit 9fc388d1 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬
Browse files

fix(analytics): redirect to mp3 file even when referer was not set

parent af7d6254
Pipeline #1006 passed with stages
in 9 minutes and 6 seconds
......@@ -58,7 +58,7 @@ class EpisodeAnalyticsController extends Controller
$serviceName = $_GET['_from'];
} elseif ($session->get('embeddable_player_domain') !== null) {
$serviceName = $session->get('embeddable_player_domain');
} elseif ($session->get('referer') !== '- Direct -') {
} elseif ($session->get('referer') !== null && $session->get('referer') !== '- Direct -') {
$serviceName = parse_url($session->get('referer'), PHP_URL_HOST);
}
......
Supports Markdown
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