From 90441e75ccf143c330c36ff1c05a0e671929850f Mon Sep 17 00:00:00 2001 From: erics Date: Mon, 13 Jun 2005 20:45:13 +0000 Subject: [PATCH] =?UTF-8?q?evite=20un=20php=20error=20si=20la=20boucle=20n?= =?UTF-8?q?'est=20pas=20lanc=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/categorie.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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