Changeset 1677 for trunk/search.php
- Timestamp:
- Dec 21, 2006, 10:38:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/search.php
r1627 r1677 188 188 ); 189 189 190 $available_tags = get_available_tags( 191 isset($user['forbidden_categories']) 192 ? explode(',', $user['forbidden_categories']) 193 : null 194 ); 190 $available_tags = get_available_tags(); 195 191 196 192 if (count($available_tags) > 0) … … 214 210 $query = ' 215 211 SELECT name,id,date_last,nb_images,global_rank,uppercats 216 FROM '.CATEGORIES_TABLE; 217 if ($user['forbidden_categories'] != '') 218 { 219 $query.= ' 220 WHERE id NOT IN ('.$user['forbidden_categories'].')'; 221 } 222 $query.= ' 212 FROM '.CATEGORIES_TABLE.' 213 '.get_sql_condition_FandF 214 ( 215 array 216 ( 217 'forbidden_categories' => 'id', 218 'visible_categories' => 'id' 219 ), 220 'WHERE' 221 ).' 223 222 ;'; 224 223
Note: See TracChangeset
for help on using the changeset viewer.