Fix: avoid warning
This commit is contained in:
parent
2607a8a3dd
commit
b70af837df
@ -624,6 +624,8 @@ class FormCompany
|
||||
* @return void
|
||||
*/
|
||||
function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $order='code', $showempty=0)
|
||||
{
|
||||
if (is_object($object) && method_exists($object, 'liste_type_contact'))
|
||||
{
|
||||
$lesTypes = $object->liste_type_contact($source, $order);
|
||||
print '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
|
||||
@ -637,6 +639,7 @@ class FormCompany
|
||||
}
|
||||
print "</select>\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a select list with zip codes and their town
|
||||
|
||||
Loading…
Reference in New Issue
Block a user