diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index a64abd4f5bc..fa32194c864 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -581,6 +581,7 @@ class Categorie { $primary_way = Array(); $way = $this->get_primary_way($id); + $w = array(); foreach ($way as $cat) { if ($url == '') @@ -592,9 +593,8 @@ class Categorie $w[] = "".$cat->label.""; } } - + return implode($sep, $w); - } /** * Retourne un tableau contenant la liste des catégories mères