From 502dc4681bcd78ccd36f7b8a98d0657ff6070179 Mon Sep 17 00:00:00 2001 From: Joachim Kueter Date: Tue, 16 Jul 2024 17:44:25 +0200 Subject: [PATCH] fix Travis --- .../prelevement/class/bonprelevement.class.php | 2 +- htdocs/societe/paymentmodes.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index 338a2ef9be7d0..9500205e9f83f 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -2178,7 +2178,7 @@ public function EnregDestinataireSEPA($row_code_client, $row_nom, $row_address, $XML_DEBITOR .= ' false'.$CrLf; $XML_DEBITOR .= ' '.$CrLf; $XML_DEBITOR .= ' '.$CrLf; - if (empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0) { $XML_DEBITOR .= ' ' . $CrLf; $XML_DEBITOR .= ' ' . $CrLf; $XML_DEBITOR .= ' ' . $row_bic . '' . $CrLf; diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 39fcde2c73146..2b8b08e2c34a9 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -136,11 +136,11 @@ if ($action == 'update') { // Update the bank account - if (!GETPOST('label', 'alpha') || !(GETPOST('bank', 'alpha') or !empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')))) { + if (!GETPOST('label', 'alpha') || !(GETPOST('bank', 'alpha') or (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')!=0))) { if (!GETPOST('label', 'alpha')) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Label")), null, 'errors'); } - if (!GETPOST('bank', 'alpha') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if (!GETPOST('bank', 'alpha') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankName")), null, 'errors'); } $action = 'edit'; @@ -153,7 +153,7 @@ $action = 'edit'; $error++; } - if (!GETPOST('bic') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if (!GETPOST('bic') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BIC")), null, 'errors'); $action = 'edit'; $error++; @@ -329,7 +329,7 @@ $action = 'create'; $error++; } - if (!GETPOST('bic') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if (!GETPOST('bic') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BIC")), null, 'errors'); $action = 'create'; $error++; @@ -1969,7 +1969,7 @@ print ''.$langs->trans("Label").''; print ''; - $required = empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')) ? "fieldrequired" : ""; + $required = (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0) ? "fieldrequired" : ""; print ''.$langs->trans("BankName").''; print ''; @@ -2007,7 +2007,7 @@ $name = 'bic'; $size = 12; $content = $bankaccount->bic; - if ($bankaccount->needIBAN() and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if ($bankaccount->needIBAN() and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) { $require = true; } $tooltip = $langs->trans("Example").': LIABLT2XXXX'; @@ -2179,7 +2179,7 @@ $name = 'bic'; $size = 12; $content = $companybankaccount->bic; - if ($companybankaccount->needIBAN() and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) { + if ($companybankaccount->needIBAN() and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) { $require = true; } $tooltip = $langs->trans("Example").': LIABLT2XXXX';