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

Commit 4ffecf27 authored by mattl's avatar mattl

i failed to put quotes in, i think

parent a5c5ec7b
......@@ -69,9 +69,9 @@ function createAlbumIfNew($artist, $album) {
if(!$res->numRows()) {
// Album doesn't exist, so create it
$art = getAlbumArt($artist, $album);
$art = $mdb2->quote(getAlbumArt($artist, $album));
if ($art) {
$license = "amazon";
$license = $mdb2->quote("amazon");
$res = $mdb2->query("INSERT INTO Album (name, artist_name, image, artwork_license) VALUES (" . ($album) . ", " . ($artist) . ", " . ($art) . ", " . ($license) .")");
......
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