Fixing style errors.

This commit is contained in:
stickler-ci 2020-09-19 20:05:08 +00:00
parent 7306a949e3
commit 3deed42671

View File

@ -503,11 +503,11 @@ class Invoices extends DolibarrApi
}
$contacts = $this->invoice->liste_contact();
foreach ($contacts as $contact) {
if ($contact['id'] == $rowid) {
$result = $this->invoice->delete_contact($contact['rowid']);
if (!$result) {
throw new RestException(500, 'Error when deleted the contact');
}