From 2f5b642ef4c382254acd86debe7f9b831b4b9fd3 Mon Sep 17 00:00:00 2001
From: toyomoyo <toyomoyo>
Date: Wed, 3 Oct 2007 06:20:23 +0000
Subject: [PATCH] MDL-11535, error in block sql group by clause

---
 tag/lib.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tag/lib.php b/tag/lib.php
index 9c8ceea074..ee69de4d36 100644
--- a/tag/lib.php
+++ b/tag/lib.php
@@ -706,7 +706,7 @@ function search_tags($text, $ordered=true, $limitfrom='' , $limitnum='' ) {
             LIKE
                 '%{$text}%'
             GROUP BY
-                tg.id
+                tg.id, tg.name, tg.rawname
             ORDER BY
                 count
             DESC";
@@ -1116,7 +1116,7 @@ function popular_tags_count($nr_of_tags=20, $tag_type = 'default') {
         ON
             tg.id = ti.tagid
         GROUP BY
-            tagid
+            tg.id, tg.rawname, tg.name
         ORDER BY
             count
         DESC
-- 
2.39.5