diff options
author | gweltas <gweltas@piwigo.org> | 2004-12-02 15:42:57 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-12-02 15:42:57 +0000 |
commit | b35dc19ab6da173cc663e49cb32389d7e6dbfdee (patch) | |
tree | 1f069c9dea705fd4a6b8c0e4ce8151027ba77433 /admin/include | |
parent | 19be28e4150ea71c70be8d22f1decc6a38ccf110 (diff) |
Update of the user preferences panel.
Deletion of some PREFIX_TABLE occurences
git-svn-id: http://piwigo.org/svn/trunk@630 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 9df0303c0..5b113d9ce 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -409,8 +409,7 @@ function check_favorites( $user_id ) $restricted_cat = array(); // retrieving all the favorites for this user and comparing their // categories to the restricted categories - $query = 'SELECT image_id'; - $query.= ' FROM '.PREFIX_TABLE.'favorites'; + $query = 'SELECT image_id FROM '.FAVORITES_TABLE; $query.= ' WHERE user_id = '.$user_id; $query.= ';'; $result = pwg_query ( $query ); @@ -432,7 +431,7 @@ function check_favorites( $user_id ) } if ( count( array_diff( $picture_cat, $restricted_cat ) ) == 0 ) { - $query = 'DELETE FROM '.PREFIX_TABLE.'favorites'; + $query = 'DELETE FROM '.FAVORITES_TABLE; $query.= ' WHERE image_id = '.$row['image_id']; $query.= ' AND user_id = '.$user_id; $query.= ';'; |