Changeset 12118 for trunk/include/functions_tag.inc.php
- Timestamp:
- Sep 8, 2011, 8:22:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_tag.inc.php
r11317 r12118 229 229 } 230 230 $query .=' 231 GROUP BY tag_id, t.id, t.name, t.url_name'; 231 GROUP BY t.id 232 ORDER BY '; 232 233 if ($max_tags>0) 233 234 { 234 $query .= ' 235 ORDER BY counter DESC 235 $query .= 'counter DESC 236 236 LIMIT '.$max_tags; 237 } 238 else 239 { 240 $query .= 'NULL'; 237 241 } 238 242
Note: See TracChangeset
for help on using the changeset viewer.