Changeset 1509 in ExiteCMS for branches/PLi-Fusion/blogs.php


Ignore:
Timestamp:
07/02/08 18:27:06 (4 years ago)
Author:
hverton
Message:

Merged trunk revisions 1408:1508 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/blogs.php

    r1227 r1509  
    222222            $bloglimit = time() - $settings['blogs_indexage'] * 86400; 
    223223            // select all authors 
    224             $result = dbquery("SELECT DISTINCT b.blog_author, u.user_name, count(*) AS count FROM ".$db_prefix."blogs b, ".$db_prefix."users u WHERE b.blog_author = u.user_id AND (blog_datestamp > '".$bloglimit."' OR blog_edittime > '".$bloglimit."') GROUP BY blog_author ORDER BY count DESC, user_name ASC"); 
     224            $result = dbquery("SELECT DISTINCT b.blog_author, u.user_name, count(*) AS count FROM ".$db_prefix."blogs b, ".$db_prefix."users u WHERE b.blog_author = u.user_id GROUP BY blog_author ORDER BY count DESC, user_name ASC"); 
    225225        } 
    226226        $variables['list'] = array(); 
     
    234234            $variables['list'][] = $data; 
    235235        } 
    236  
    237236        break;       
    238237} 
Note: See TracChangeset for help on using the changeset viewer.