Fix: Suppression warning php
This commit is contained in:
parent
f5451d9c1d
commit
08618c124a
@ -991,23 +991,24 @@ class Form
|
|||||||
$cat = new Categorie ($this -> db);
|
$cat = new Categorie ($this -> db);
|
||||||
$cat->get_categories_arbo();
|
$cat->get_categories_arbo();
|
||||||
$cate_arbo = $cat->get_arbo_each_cate();
|
$cate_arbo = $cat->get_arbo_each_cate();
|
||||||
$output= '<select name="'.$select_name.'">'; //creation des categories meres
|
$output = '<select name="'.$select_name.'">'; //creation des categories meres
|
||||||
$output.= '<option value="-1" id="choix">'.$langs->trans("NoneCategory").'</option>\n';
|
$output.= '<option value="-1" id="choix">'.$langs->trans("NoneCategory").'</option>\n';
|
||||||
|
|
||||||
|
if ($cate_arbo)
|
||||||
foreach($cate_arbo as $key => $value)
|
|
||||||
{
|
{
|
||||||
if($value[1] == $selected)
|
foreach($cate_arbo as $key => $value)
|
||||||
$add = "selected='true' ";
|
{
|
||||||
else
|
if($value[1] == $selected)
|
||||||
$add = "";
|
$add = "selected='true' ";
|
||||||
$output.= '<option '.$add.'value="'.$value[1].'">'.$value[0].'</option>';
|
else
|
||||||
|
$add = "";
|
||||||
|
$output.= '<option '.$add.'value="'.$value[1].'">'.$value[0].'</option>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output.= '</select>';
|
$output.= '</select>';
|
||||||
return $output;
|
return $output;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user