Changeset 1569

Show
Ignore:
Timestamp:
03/20/08 13:26:59 (5 months ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> Fixes #308, incomplete query for popular tags

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/search/lib/tags_display.php

    r1539 r1569  
    1010 
    1111if ($tags = get_records_sql('SELECT DISTINCT tag,count(ident) AS number, '.$db->random.' AS rand  
    12                              FROM '.$CFG->prefix."tags WHERE access = ? 
    13                              GROUP BY tag having number > 1 order by rand limit 200",array('PUBLIC'))) { 
     12                             FROM '.$CFG->prefix."tags WHERE " . $searchline . " 
     13                             GROUP BY tag having number > 1 order by rand limit 200")) { 
    1414    $max = 0; 
    1515    foreach($tags as $tag) {