Fix: Suppression warning php

This commit is contained in:
Laurent Destailleur 2006-04-07 21:04:14 +00:00
parent f5451d9c1d
commit 08618c124a

View File

@ -994,7 +994,8 @@ class Form
$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) foreach($cate_arbo as $key => $value)
{ {
if($value[1] == $selected) if($value[1] == $selected)
@ -1003,10 +1004,10 @@ class Form
$add = ""; $add = "";
$output.= '<option '.$add.'value="'.$value[1].'">'.$value[0].'</option>'; $output.= '<option '.$add.'value="'.$value[1].'">'.$value[0].'</option>';
} }
}
$output.= '</select>'; $output.= '</select>';
return $output; return $output;
} }