From cc25f4aa35092e29d1fd7fdb72e34d30eb0deeec Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 30 Dec 2004 00:39:37 +0000 Subject: - bug fixed : if some categories are forbidden, query for recent categories was wrong git-svn-id: http://piwigo.org/svn/trunk@664 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_recent_cats.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/category_recent_cats.inc.php b/include/category_recent_cats.inc.php index ab4732a81..8f50d9a48 100644 --- a/include/category_recent_cats.inc.php +++ b/include/category_recent_cats.inc.php @@ -43,7 +43,7 @@ SELECT c.id AS category_id,uppercats,representative_picture_id,path,file,tn_ext if ( $user['forbidden_categories'] != '' ) { $query.= ' - AND id NOT IN ('.$user['forbidden_categories'].')'; + AND c.id NOT IN ('.$user['forbidden_categories'].')'; } $query.= ' ;'; -- cgit v1.2.3