Linting api_invoices.class.php

This commit is contained in:
Pierre Penelon 2020-10-22 09:56:13 +02:00 committed by GitHub
parent b8cb080f0d
commit 1d218b3260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1013,7 +1013,7 @@ class Invoices extends DolibarrApi
if ($result == 0){ if ($result == 0){
throw new RestException(404, 'Discount not found'); throw new RestException(404, 'Discount not found');
} }
else if($result < 0){ if ($result < 0){
throw new RestException(500, $discountcheck->error); throw new RestException(500, $discountcheck->error);
} }