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

Commit 916194a5 authored by clint's avatar clint

We may wish to allow more than one album of the same name.

parent e18ca4f5
......@@ -71,7 +71,7 @@ function createArtistIfNew($artist) {
function createAlbumIfNew($artist, $album) {
global $mdb2;
$res = $mdb2->query("SELECT name FROM Album WHERE name = " . ($album));
$res = $mdb2->query("SELECT name FROM Album WHERE name = " . ($album) . " AND artist_name = " . ($artist));
if(PEAR::isError($res)) {
die("FAILED " . $res->getMessage() . "\n");
}
......
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