evite un php error si la boucle n'est pas lancée

This commit is contained in:
erics 2005-06-13 20:45:13 +00:00
parent a6a9d2ce69
commit 90441e75cc

View File

@ -581,6 +581,7 @@ class Categorie
{ {
$primary_way = Array(); $primary_way = Array();
$way = $this->get_primary_way($id); $way = $this->get_primary_way($id);
$w = array();
foreach ($way as $cat) foreach ($way as $cat)
{ {
if ($url == '') if ($url == '')
@ -594,7 +595,6 @@ class Categorie
} }
return implode($sep, $w); return implode($sep, $w);
} }
/** /**
* Retourne un tableau contenant la liste des catégories mères * Retourne un tableau contenant la liste des catégories mères