Changeset 250
- Timestamp:
- Jan 3, 2004, 9:58:07 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/comments.php
r180 r250 170 170 $query.= ' AND date > '.$maxtime; 171 171 // we must not show pictures of a forbidden category 172 $restricted_cats = get_all_restrictions( $user['id'],$user['status'] ); 173 if ( count( $restricted_cats ) > 0 ) 172 if ( $user['forbidden_categories'] != '' ) 174 173 { 175 $query.= ' AND category_id NOT IN ('; 176 foreach ( $restricted_cats as $i => $restricted_cat ) { 177 if ( $i > 0 ) $query.= ','; 178 $query.= $restricted_cat; 179 } 180 $query.= ')'; 174 $query.= ' AND category_id NOT IN '; 175 $query.= '('.$user['forbidden_categories'].')'; 181 176 } 182 177 $query.= ' ORDER BY ic.image_id DESC';
Note: See TracChangeset
for help on using the changeset viewer.