Fixing style errors.
This commit is contained in:
parent
18da6e6d6f
commit
3537f68c7e
@ -96,8 +96,8 @@ if (empty($reshook)) {
|
|||||||
$bank = new Account($db);
|
$bank = new Account($db);
|
||||||
$bank->fetch($conf->global->{$default_account});
|
$bank->fetch($conf->global->{$default_account});
|
||||||
if ((empty($bank->ics) && $type !== 'bank-transfer')
|
if ((empty($bank->ics) && $type !== 'bank-transfer')
|
||||||
|| (empty($bank->ics_transfer) && $type === 'bank-transfer')
|
|| (empty($bank->ics_transfer) && $type === 'bank-transfer')
|
||||||
) {
|
) {
|
||||||
$errormessage = str_replace('{url}', $bank->getNomUrl(1, '', '', -1, 1), $langs->trans("ErrorICSmissing", '{url}'));
|
$errormessage = str_replace('{url}', $bank->getNomUrl(1, '', '', -1, 1), $langs->trans("ErrorICSmissing", '{url}'));
|
||||||
setEventMessages($errormessage, null, 'errors');
|
setEventMessages($errormessage, null, 'errors');
|
||||||
header("Location: ".DOL_URL_ROOT.'/compta/prelevement/create.php');
|
header("Location: ".DOL_URL_ROOT.'/compta/prelevement/create.php');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user