Ignore:
Timestamp:
Apr 25, 2008, 3:00:39 AM (16 years ago)
Author:
rvelices
Message:
  • minor sql query optimizations
File:
1 edited

Legend:

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

    r2299 r2308  
    5050  WHERE'
    5151    ).'
    52   GROUP BY tag_id';
     52  GROUP BY tag_id
     53  ORDER BY NULL';
    5354  $tag_counters = simple_hash_from_query($query, 'tag_id', 'counter');
    5455
     
    243244  ORDER BY counter DESC
    244245  LIMIT 0,'.$max_tags;
     246  }
     247  else
     248  {
     249    $query .= '
     250  ORDER BY NULL';
    245251  }
    246252
Note: See TracChangeset for help on using the changeset viewer.