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$'); ?>