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

Commit 4583eda6 authored by clint's avatar clint

this is questionable

parent ab30d4b0
......@@ -48,13 +48,11 @@ class Track {
global $mdb2;
$res = $mdb2->query("SELECT name, artist, album, duration, streamable, license, downloadurl, streamurl, mbid FROM Track WHERE "
. "name = " . $mdb2->quote($name, "text") . " AND "
. "artist = " . $mdb2->quote($artist, "text"));
. "artist = " . $mdb2->quote($artist, "text") . " AND album IS NOT NULL");
if(!$res->numRows()) {
$this->name = "No such track: " . $name;
} else {
print "<!-- TRACK: ".$row["album"]. " -->";
$row = sanitize($res->fetchRow(MDB2_FETCHMODE_ASSOC));
print "<!-- AFTERTRACK: ".$row["album"]. " -->";
$this->name = $row["name"];
$this->mbid = $row["mbid"];
$this->artist_name = $row["artist"];
......
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