FIX Warning: count()
This commit is contained in:
parent
c55f83b0b7
commit
7c4dad2728
@ -468,7 +468,7 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
|
||||
|
||||
print '<tr><td>'.$langs->trans("AffectedTo").'</td><td>';
|
||||
$contactsofproject=(! empty($object->id)?$object->getListContactId('internal'):'');
|
||||
if (count($contactsofproject))
|
||||
if (is_array($contactsofproject) && count($contactsofproject))
|
||||
{
|
||||
print $form->select_dolusers($user->id, 'userid', 0, '', 0, '', $contactsofproject, 0, 0, 0, '', 0, '', 'maxwidth300');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user