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

Commit e1ca7b2a authored by clint's avatar clint

poor error handling

parent 666a6fe2
......@@ -49,6 +49,10 @@ class TagCloud {
$query .= ($table == "Scrobbles") ? ' rating <> "S" ' : null;
$query .= " GROUP BY $field ORDER BY count DESC LIMIT $limit";
$res = $mdb2->query($query);
if (PEAR::isError($res)) {
echo("ERROR" . $res->getMessage());
}
if (!$res->numRows()) {
return false;
} else {
......
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