FIX : wrong test

This commit is contained in:
gauthier 2019-09-19 17:28:41 +02:00
parent 64c53e2e85
commit 575e4d11d0

View File

@ -71,7 +71,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm=='yes
$error++; $error++;
$action = 'create'; $action = 'create';
} }
if (! empty($conf->banque->enabled) && ! $_POST["accountid"] > 0) if (! empty($conf->banque->enabled) && $_POST["accountid"] <= 0)
{ {
setEventMessages($langs->trans("ErrorFieldRequired",$langs->transnoentities("AccountToCredit")), null, 'errors'); setEventMessages($langs->trans("ErrorFieldRequired",$langs->transnoentities("AccountToCredit")), null, 'errors');
$error++; $error++;