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

Commit e5dff7ec authored by mattl's avatar mattl

shit, they're spamming artists too

parent 2209b921
......@@ -42,6 +42,8 @@ function usernameFromSID($session_id) {
function createArtistIfNew($artist) {
global $mdb2;
$artist = NoSpamTracks($artist);
$res = $mdb2->query("SELECT name FROM Artist WHERE name = " . ($artist));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage());
......@@ -77,6 +79,7 @@ function createTrackIfNew($artist, $album, $track, $mbid) {
global $mdb2;
$track = NoSpamTracks($track);
$artist = NoSpamTracks($artist);
$res = $mdb2->query("SELECT name FROM Track WHERE name = " . ($track) . " AND artist = " . ($artist));
if(PEAR::isError($res)) {
......
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