Commit 8ba41d76 authored by P. J. McDermott's avatar P. J. McDermott

Fix table name casing in a SELECT query.

Fix casing in the name 'Artist' in a query in TagCloud::generateTagCloud().
parent 018c097e
......@@ -41,8 +41,8 @@ class TagCloud {
}
$sizes = array('xx-large', 'x-large', 'large', 'medium', 'small', 'x-small', 'xx-small');
if ($field == 'artist') {
$query = 'SELECT ' . $field . ', count(*) AS count FROM ' . $table . ' INNER JOIN artist ON ' . $table . '.' . $field . ' = artist.name '
. ' WHERE artist.streamable = 1';
$query = 'SELECT ' . $field . ', count(*) AS count FROM ' . $table . ' INNER JOIN Artist ON ' . $table . '.' . $field . ' = Artist.name '
. ' WHERE Artist.streamable = 1';
$query .= (!is_null($constraint)) ? ' AND ' : null;
} else {
$query = 'SELECT ' . $field . ', count(*) AS count FROM ' . $table;
......
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