Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

To fix MDL-8614

  • Loading branch information...
commit f4959dc93905c2a51d7e2f603b330765d1be7969 1 parent e7a84ec
authored April 01, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  blocks/blog_tags/block_blog_tags.php
4  blocks/blog_tags/block_blog_tags.php
@@ -71,13 +71,13 @@ function get_content() {
71 71
 
72 72
         $timewithin = $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
73 73
         
74  
-        $sql  = 'SELECT t.*, COUNT(DISTINCT bt.id) as ct ';
  74
+        $sql  = 'SELECT t.id, t.type, t.text, COUNT(DISTINCT bt.id) as ct ';
75 75
         $sql .= "FROM {$CFG->prefix}tags as t, {$CFG->prefix}blog_tag_instance as bt, {$CFG->prefix}post as p ";
76 76
         $sql .= 'WHERE t.id = bt.tagid ';
77 77
         $sql .= 'AND p.id = bt.entryid ';
78 78
         $sql .= 'AND (p.publishstate = \'site\' or p.publishstate=\'public\') ';
79 79
         $sql .= "AND bt.timemodified > {$timewithin} ";
80  
-        $sql .= 'GROUP BY bt.tagid ';
  80
+        $sql .= 'GROUP BY  t.id, t.type, t.text ';
81 81
         $sql .= 'ORDER BY ct DESC, t.text ASC ';
82 82
         $sql .= "LIMIT {$this->config->numberoftags} ";
83 83
 

0 notes on commit f4959dc

Please sign in to comment.
Something went wrong with that request. Please try again.