From 7b8d0b8dd8d3f5fa25dedaadb922525e7c95ee3b Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 12 Jan 2004 21:51:44 +0000 Subject: [PATCH] Using the stored array with user restricted categories git-svn-id: http://piwigo.org/svn/branches/release-1_3@275 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comments.php b/comments.php index f90f4dcac..05d932d77 100644 --- a/comments.php +++ b/comments.php @@ -177,7 +177,7 @@ if ( $user['forbidden_categories'] != '' ) $query.= ' ORDER BY ic.image_id DESC'; $query.= ';'; $result = mysql_query( $query ); -display_pictures( $result, $maxtime, $restricted_cats ); +display_pictures( $result, $maxtime, $user['restrictions'] ); //----------------------------------------------------------- html code display $code = $vtp->Display( $handle, 0 ); echo $code;