From 3b7ca32b4f4e5b25cb4644ce2bae945968a53cd6 Mon Sep 17 00:00:00 2001 From: clint <> Date: Mon, 20 Apr 2009 02:34:14 +0000 Subject: [PATCH] let's try to use valid sql --- web/data/TagCloud.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/data/TagCloud.php b/web/data/TagCloud.php index e0f6a41f..f253e216 100644 --- a/web/data/TagCloud.php +++ b/web/data/TagCloud.php @@ -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)) { -- GitLab