aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_recent_cats.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-30 00:39:37 +0000
committerplegall <plg@piwigo.org>2004-12-30 00:39:37 +0000
commitcc25f4aa35092e29d1fd7fdb72e34d30eb0deeec (patch)
treea8ffecb528194ad5a130ec797d9831f0c8318776 /include/category_recent_cats.inc.php
parent24f7065c3f154dbc0a301c0df7dcd4ab1271534e (diff)
- 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
Diffstat (limited to '')
-rw-r--r--include/category_recent_cats.inc.php2
1 files changed, 1 insertions, 1 deletions
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.= '
;';