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

Commit e18ca4f5 authored by clint's avatar clint

idiotic s error

parent bb0079f8
......@@ -131,14 +131,14 @@ function getTrackCreateIfNew($artist, $album, $track, $mbid) {
function getScrobbleTrackCreateIfNew($artist, $album, $track, $mbid, $tid) {
global $mdb2;
$res = $mdb2->query("SELECT id FROM Scrobbles_Track WHERE name = " . (strtolower($track)) . " AND artist = " . (strtolower($artist)) . " AND album = " . strtolower($album) . " AND mbid = " . strtolower($mbid));
$res = $mdb2->query("SELECT id FROM Scrobble_Track WHERE name = " . (strtolower($track)) . " AND artist = " . (strtolower($artist)) . " AND album = " . strtolower($album) . " AND mbid = " . strtolower($mbid));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage() . "\n");
}
if(!$res->numRows()) {
// Create new track
$res = $mdb2->exec("INSERT INTO Scrobbles_Track (name, artist, album, mbid, track) VALUES ("
$res = $mdb2->exec("INSERT INTO Scrobble_Track (name, artist, album, mbid, track) VALUES ("
. strtolower($track) . ", "
. strtolower($artist) . ", "
. strtolower($album) . ", "
......
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