evite un php error si la boucle n'est pas lancée
This commit is contained in:
parent
a6a9d2ce69
commit
90441e75cc
@ -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 == '')
|
||||||
@ -592,9 +593,8 @@ class Categorie
|
|||||||
$w[] = "<a href='".DOL_URL_ROOT."/$url?catid=".$cat->id."'>".$cat->label."</a>";
|
$w[] = "<a href='".DOL_URL_ROOT."/$url?catid=".$cat->id."'>".$cat->label."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user