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();
$way = $this->get_primary_way($id);
$w = array();
foreach ($way as $cat)
{
if ($url == '')
@ -592,9 +593,8 @@ class Categorie
$w[] = "<a href='".DOL_URL_ROOT."/$url?catid=".$cat->id."'>".$cat->label."</a>";
}
}
return implode($sep, $w);
}
/**
* Retourne un tableau contenant la liste des catégories mères