Changeset 5586

Show
Ignore:
Timestamp:
03/10/08 17:17:40 (10 months ago)
Author:
inureyes
Message:

#869

  • 만약을 위하여 태그를 얻는 부분의 쿼리를 strict하게 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/model/blog.tag.php

    r5568 r5586  
    4242    if ($skinSetting['tagboxAlign'] == 1) { // order by count 
    4343        if (doesHaveOwnership()) 
    44             $tags = POD::queryAll("SELECT `name`, count(*) `cnt`, id FROM `{$database['prefix']}Tags` t  
     44            $tags = POD::queryAll("SELECT `name`, count(*) `cnt`, t.id FROM `{$database['prefix']}Tags` t  
    4545                INNER JOIN `{$database['prefix']}TagRelations` r ON r.blogid = $blogid AND r.tag = t.id 
    4646                GROUP BY r.tag