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

Commit e38a86cb authored by tobyink's avatar tobyink

Seems the parameter passes to this function was being ignored. Fixed now.

parent 29d6ee4d
......@@ -213,7 +213,7 @@ class User {
function getTopTracks($number=20) {
global $mdb2;
$res = $mdb2->query("SELECT COUNT(track) as c, artist, album, track FROM Scrobbles WHERE rating<>'S' AND username=".$mdb2->quote($this->name,"text")." GROUP BY artist,album,track ORDER BY c DESC LIMIT 20");
$res = $mdb2->query("SELECT COUNT(track) as c, artist, album, track FROM Scrobbles WHERE rating<>'S' AND username=".$mdb2->quote($this->name,"text")." GROUP BY artist,album,track ORDER BY c DESC LIMIT $number");
if(PEAR::isError($res)) {
return $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