From 18506cd801fe1f05c09976eeb19822d5f748aa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ho=CC=88ltje?= Date: Tue, 30 Apr 2013 16:34:39 -0400 Subject: [PATCH] Use class for the user's badge widget It was previously using an `id`, but you can't use the same `id` on a page multiple times. This was causing problems on the users page. --- qa-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa-plugin.php b/qa-plugin.php index df6da8e..aaaec41 100644 --- a/qa-plugin.php +++ b/qa-plugin.php @@ -415,7 +415,7 @@ function qa_badge_plugin_user_widget($handle) { foreach($result as $slug) { $bcount[$badges[$slug]['type']] = isset($bcount[$badges[$slug]['type']])?$bcount[$badges[$slug]['type']]+1:1; } - $output=''; + $output=''; for($x = 2; $x >= 0; $x--) { if(!isset($bcount[$x])) continue; $count = $bcount[$x];