Fixing style errors.
This commit is contained in:
parent
7306a949e3
commit
3deed42671
@ -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');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user