From df9f248537cc7b4ac58044f534daec5161d04c06 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Thu, 14 Feb 2019 21:12:00 +0100 Subject: [PATCH] Update api_contacts.class.php --- htdocs/societe/class/api_contacts.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/class/api_contacts.class.php b/htdocs/societe/class/api_contacts.class.php index 77134a604b5..ef5ac9ad4d1 100644 --- a/htdocs/societe/class/api_contacts.class.php +++ b/htdocs/societe/class/api_contacts.class.php @@ -182,13 +182,13 @@ class Contacts extends DolibarrApi $obj = $db->fetch_object($result); $contact_static = new Contact($db); if ($contact_static->fetch($obj->rowid)) - { + { if ($includecount) { $contact_static->load_ref_elements(); } $obj_ret[] = $this->_cleanObjectDatas($contact_static); - } + } $i++; }