Ignore:
Timestamp:
Nov 29, 2009, 3:06:16 PM (14 years ago)
Author:
nikrou
Message:

Feature_1255:

  • bug fix : function pwg_db_get_recent_period_expression
  • add extra fields for select based on "order by"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_tag.inc.php

    r4334 r4387  
    5050  WHERE'
    5151    ).'
    52   GROUP BY tag_id
    53   ORDER BY NULL';
     52  GROUP BY tag_id';
    5453  $tag_counters = simple_hash_from_query($query, 'tag_id', 'counter');
    5554
     
    235234  }
    236235  $query .='
    237   GROUP BY tag_id';
     236  GROUP BY tag_id, t.id, t.name, t.url_name';
    238237  if ($max_tags>0)
    239238  {
     
    241240  ORDER BY counter DESC
    242241  LIMIT '.$max_tags;
    243   }
    244   else
    245   {
    246     $query .= '
    247   ORDER BY NULL';
    248242  }
    249243
Note: See TracChangeset for help on using the changeset viewer.