From 439dbaf0d566c569bc24018ac69f4494a28dc9e3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Jul 2006 13:27:36 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20pas=20de=20droits=20en=20modif=20su?= =?UTF-8?q?r=20produits,=20alors=20pas=20moyen=20de=20supprimer=20une=20af?= =?UTF-8?q?fectation=20de=20cat=E9gorie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/liste.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/liste.php b/htdocs/categories/liste.php index 3e7b587e951..a9cdeb6f149 100644 --- a/htdocs/categories/liste.php +++ b/htdocs/categories/liste.php @@ -28,6 +28,7 @@ require "./pre.inc.php"; +if (!$user->rights->categorie->lire) accessforbidden(); llxHeader ("","",$langs->trans("Categories")); @@ -47,10 +48,11 @@ if ($cats != -1) print ''; print ''; + $var=true; foreach ($cats as $cat) { - $i = !$i; - print "\t\n"; + $var = ! $var; + print "\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\n"; @@ -66,5 +68,5 @@ print '
'.$langs->trans("AllCats").'
".$cat->label."".$cat->description."
'; $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?>