2
0
forked from Wavyzz/dolibarr

Fix phan report

This commit is contained in:
Laurent Destailleur
2024-01-12 22:09:51 +01:00
parent dfdca61c71
commit f773fa2dbd
5 changed files with 5 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ if ($action == 'add_currency') {
$currency = new MultiCurrency($db);
if ($currency->fetch($fk_multicurrency) > 0) {
if ($currency->delete() > 0) {
if ($currency->delete($user) > 0) {
setEventMessages($langs->trans('RecordDeleted'), array());
} else {
setEventMessages($langs->trans('ErrorDeleteCurrencyFail'), array(), 'errors');