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

Commit 9564e48c authored by elleo's avatar elleo

Make artist listener count lookup case insensitive

parent 153f3b81
......@@ -319,7 +319,7 @@ class Artist {
function getListenerCount() {
global $adodb;
$row = $adodb->CacheGetRow(600, 'SELECT COUNT(DISTINCT userid) AS listeners FROM Scrobbles WHERE'
. ' artist = ' . $adodb->qstr($this->name));
. ' lower(artist) = lower(' . $adodb->qstr($this->name) . ')');
return $row['listeners'];
}
......
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