summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShabanaBlackborder2013-10-07 11:12:56 (GMT)
committer ShabanaBlackborder2013-10-07 11:12:56 (GMT)
commit59522fe5ed160f0cf4dc260255c4cc8990d6d6f3 (patch)
treebec4bfb1a6edc350882de18500ed72474c60e38e
parentd8bf68e47c04e6de91e8367ca15f0349dc5103a2 (diff)
Issue #2098615 by Shabana Blackborder: Fixed syntax error in user_badges_get_badges function.
-rw-r--r--user_badges.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_badges.module b/user_badges.module
index a79eeec..a9c3dcb 100644
--- a/user_badges.module
+++ b/user_badges.module
@@ -953,7 +953,7 @@ function user_badges_get_badges($uid, $options = array()) {
if ($usr && variable_get('user_badges_showblocked', 0)) {
$sql = db_query('SELECT DISTINCT b.bid, u.uid, b.weight, b.name, b.image, b.href,
- b.unhideable, b.fixedweight, b.doesnotcounttolimit, u.userweight, b.tid, r.rid
+ b.unhideable, b.fixedweight, b.doesnotcounttolimit, u.userweight, b.tid, r.rid,
CASE WHEN b.fixedweight = 1 THEN b.weight ELSE COALESCE(u.userweight,b.weight) END coalescedweight
FROM {user_badges_badges} b
INNER JOIN {user_badges_user} u ON b.bid = u.bid