Fix: avoid warning

This commit is contained in:
Regis Houssin 2012-10-31 09:59:24 +01:00
parent 2607a8a3dd
commit b70af837df

View File

@ -624,6 +624,8 @@ class FormCompany
* @return void * @return void
*/ */
function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $order='code', $showempty=0) 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); $lesTypes = $object->liste_type_contact($source, $order);
print '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">'; print '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
@ -637,6 +639,7 @@ class FormCompany
} }
print "</select>\n"; print "</select>\n";
} }
}
/** /**
* Return a select list with zip codes and their town * Return a select list with zip codes and their town