bugfix
This commit is contained in:
parent
34736cd2e1
commit
db2c2d0ffa
@ -918,10 +918,12 @@ class Form
|
|||||||
*/
|
*/
|
||||||
function select_nombre_sous_categorie($selected='', $nbcats=1)
|
function select_nombre_sous_categorie($selected='', $nbcats=1)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $langs;
|
||||||
$langs->load("categorie");
|
$langs->load("categorie");
|
||||||
|
|
||||||
$categorie = new Categorie($db);
|
if ($selected)
|
||||||
|
{
|
||||||
|
$categorie = new Categorie($this->$db);
|
||||||
$nb = $categorie->get_nb_categories();
|
$nb = $categorie->get_nb_categories();
|
||||||
|
|
||||||
for ($i = 0 ; $i <= $nb ; $i++)
|
for ($i = 0 ; $i <= $nb ; $i++)
|
||||||
@ -940,6 +942,7 @@ class Form
|
|||||||
print '</select>';
|
print '</select>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Retourne la liste déroulante des civilite actives
|
* \brief Retourne la liste déroulante des civilite actives
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user