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

Commit 3b7ca32b authored by clint's avatar clint

let's try to use valid sql

parent e1ca7b2a
......@@ -46,7 +46,7 @@ class TagCloud {
$query .= (!is_null($constraint)) ? ' username = ' . $mdb2->quote($constraint, 'text') : null;
}
$query .= (!is_null($constraint) && ($table == "Scrobbles")) ? ' AND ' : null;
$query .= ($table == "Scrobbles") ? ' rating <> "S" ' : null;
$query .= ($table == "Scrobbles") ? " rating <> 'S' " : null;
$query .= " GROUP BY $field ORDER BY count DESC LIMIT $limit";
$res = $mdb2->query($query);
if (PEAR::isError($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