Changeset 7487
- Timestamp:
- Oct 30, 2010, 12:33:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/comments.php
r6909 r7487 106 106 { 107 107 check_input_parameter('cat', $_GET, false, PATTERN_ID); 108 109 $category_ids = get_subcat_ids(array($_GET['cat'])); 110 if (empty($category_id)) 111 { 112 $category_ids = array(-1); 113 } 108 114 109 115 $page['where_clauses'][] = 110 'category_id IN ('.implode(',', get_subcat_ids(array($_GET['cat']))).')';116 'category_id IN ('.implode(',', $category_ids).')'; 111 117 } 112 118
Note: See TracChangeset
for help on using the changeset viewer.