Changeset 293
- Timestamp:
- Jan 18, 2004, 10:56:20 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/include/functions.php
r282 r293 314 314 function check_favorites( $user_id ) 315 315 { 316 $query = 'SELECT status ';316 $query = 'SELECT status,forbidden_categories'; 317 317 $query.= ' FROM '.PREFIX_TABLE.'users'; 318 318 $query.= ' WHERE id = '.$user_id; … … 321 321 $status = $row['status']; 322 322 // retrieving all the restricted categories for this user 323 $restricted_cat = get_all_restrictions( $user_id, $status);323 $restricted_cat = explode( ',', $row['forbidden_categories'] ); 324 324 // retrieving all the favorites for this user and comparing their 325 325 // categories to the restricted categories
Note: See TracChangeset
for help on using the changeset viewer.