Commit 060a984f authored by mattl's avatar mattl

Remove lower checks, they seem to break some languages

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