- 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
This commit is contained in:
plegall
2004-12-30 00:39:37 +00:00
parent 24f7065c3f
commit cc25f4aa35

View File

@@ -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.= '
;';