]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11535, error in block sql group by clause
authortoyomoyo <toyomoyo>
Wed, 3 Oct 2007 06:20:23 +0000 (06:20 +0000)
committertoyomoyo <toyomoyo>
Wed, 3 Oct 2007 06:20:23 +0000 (06:20 +0000)
tag/lib.php

index 9c8ceea0743154e71d8ef37b1a90c85be1d3d1a9..ee69de4d36bdf224b026778b61015cd7be041f42 100644 (file)
@@ -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