We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c79c26e2 authored by clint's avatar clint

make tag radio tags case-insensitive

parent 20b7a94e
......@@ -52,7 +52,7 @@ if(ereg("l(ast|ibre)fm://globaltags/(.*)", $url, $regs)) {
die("FAILED\n");
}
$res = $mdb2->query("SELECT Track.name, Track.artist, Track.album FROM Track INNER JOIN Tags ON Track.name=Tags.track AND Track.artist=Tags.artist AND Track.album=Tags.album WHERE streamurl<>'' AND tag = " . $mdb2->quote($tag, "text"));
$res = $mdb2->query("SELECT Track.name, Track.artist, Track.album FROM Track INNER JOIN Tags ON Track.name=Tags.track AND Track.artist=Tags.artist AND Track.album=Tags.album WHERE streamurl<>'' AND lower(tag) = " . $mdb2->quote(strtolower($tag), "text"));
$avail = $res->numRows();
......
Markdown is supported
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