Changeset 630 for trunk/admin/include


Ignore:
Timestamp:
Dec 2, 2004, 4:42:57 PM (20 years ago)
Author:
gweltas
Message:

Update of the user preferences panel.
Deletion of some PREFIX_TABLE occurences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r625 r630  
    410410  // retrieving all the favorites for this user and comparing their
    411411  // categories to the restricted categories
    412   $query = 'SELECT image_id';
    413   $query.= ' FROM '.PREFIX_TABLE.'favorites';
     412  $query = 'SELECT image_id FROM '.FAVORITES_TABLE;
    414413  $query.= ' WHERE user_id = '.$user_id;
    415414  $query.= ';';
     
    433432    if ( count( array_diff( $picture_cat, $restricted_cat ) ) == 0 )
    434433    {
    435       $query = 'DELETE FROM '.PREFIX_TABLE.'favorites';
     434      $query = 'DELETE FROM '.FAVORITES_TABLE;
    436435      $query.= ' WHERE image_id = '.$row['image_id'];
    437436      $query.= ' AND user_id = '.$user_id;
Note: See TracChangeset for help on using the changeset viewer.