Commit 109be2cf authored by Mike Sheldon's avatar Mike Sheldon

Default to the community station if the user just hits 'Listen' without specifying a tag

parent 3b26cff7
......@@ -24,6 +24,11 @@ require_once('templating.php');
if (isset($_GET['tag'])) {
$station = 'librefm://globaltags/' . $_GET['tag'];
if(empty($_GET['tag'])) {
// The user's just hit 'listen' without selecting a tag
// so we default to the community station
$station = "librefm://community/loved";
} else if (isset($_GET['station'])) {
$station = $_GET['station'];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment