git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit f047dbfa authored by Rob Myers's avatar Rob Myers

Fix scrobble submission problem.

parent 7382d20d
?php
<?php
/* GNUkebox -- a free software server for recording your listening habits
......@@ -85,7 +85,7 @@ function getTrackCreateIfNew($artist, $album, $track, $mbid) {
global $adodb;
if ($album != 'NULL') {
$res = $adodb->GetOne('SELECT id FROM Track WHERE name = ' . $track . ' AND artist_name = ' . $artist . ' AND album_name = ' . $album . ')';
$res = $adodb->GetOne('SELECT id FROM Track WHERE name = ' . $track . ' AND artist_name = ' . $artist . ' AND album_name = ' . $album . ')');
} else {
$res = $adodb->GetOne('SELECT id FROM Track WHERE name = ' . $track . ' AND artist_name = ' . $artist . ' AND album_name IS NULL');
}
......
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