Changeset 977


Ignore:
Timestamp:
01/15/12 20:15:58 (4 months ago)
Author:
fuze
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fuze/components/board/model.php

    r976 r977  
    239239        $cats = array(); 
    240240 
    241         $sql = "SELECT c.* 
    242                 FROM cms_board_cats c 
    243                 LEFT JOIN cms_board_items i ON i.category_id = c.id AND i.published = 1 
    244                 WHERE c.published = 1 AND c.parent_id = '$category_id' 
     241        $sql = "SELECT * 
     242                FROM cms_board_cats 
     243                WHERE published = 1 AND parent_id = '$category_id' 
    245244                ORDER BY title ASC"; 
    246245        $result = $this->inDB->query($sql); 
Note: See TracChangeset for help on using the changeset viewer.