From b35dc19ab6da173cc663e49cb32389d7e6dbfdee Mon Sep 17 00:00:00 2001 From: gweltas Date: Thu, 2 Dec 2004 15:42:57 +0000 Subject: 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 --- admin/include/functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'admin/include/functions.php') 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.= ';'; -- cgit v1.2.3