diff --git a/htdocs/societe/class/api_contacts.class.php b/htdocs/societe/class/api_contacts.class.php index ee131a5c40f..9463aba5277 100644 --- a/htdocs/societe/class/api_contacts.class.php +++ b/htdocs/societe/class/api_contacts.class.php @@ -95,7 +95,7 @@ class Contacts extends DolibarrApi { $this->contact->load_ref_elements(); } - + if ($includeroles) { $this->contact->fetchRoles(); @@ -259,7 +259,7 @@ class Contacts extends DolibarrApi if ($includecount) { $contact_static->load_ref_elements(); - } + } if ($includeroles) { $contact_static->fetchRoles();