Changeset 293


Ignore:
Timestamp:
Jan 18, 2004, 10:56:20 PM (20 years ago)
Author:
z0rglub
Message:

Use the stored calculated date users.forbidden_categories instead of trying
to use a deprecated function get_all_restrictions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/include/functions.php

    r282 r293  
    314314function check_favorites( $user_id )
    315315{
    316   $query = 'SELECT status';
     316  $query = 'SELECT status,forbidden_categories';
    317317  $query.= ' FROM '.PREFIX_TABLE.'users';
    318318  $query.= ' WHERE id = '.$user_id;
     
    321321  $status = $row['status'];
    322322  // retrieving all the restricted categories for this user
    323   $restricted_cat = get_all_restrictions( $user_id, $status );
     323  $restricted_cat = explode( ',', $row['forbidden_categories'] );
    324324  // retrieving all the favorites for this user and comparing their
    325325  // categories to the restricted categories
Note: See TracChangeset for help on using the changeset viewer.