CS Fix
This commit is contained in:
parent
077dfab7a6
commit
6eae44b766
@ -59,12 +59,15 @@ if ($action == 'update')
|
|||||||
{
|
{
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$compta_mode = GETPOST('compta_mode','alpha');
|
$compta_modes = array(
|
||||||
|
|
||||||
if (in_array($compta_mode, array(
|
|
||||||
'RECETTES-DEPENSES',
|
'RECETTES-DEPENSES',
|
||||||
'CREANCES-DETTES'
|
'CREANCES-DETTES'
|
||||||
))) {
|
);
|
||||||
|
|
||||||
|
$compta_mode = GETPOST('compta_mode','alpha');
|
||||||
|
|
||||||
|
|
||||||
|
if (in_array($compta_mode,$compta_modes)) {
|
||||||
|
|
||||||
if (!dolibarr_set_const($db, 'COMPTA_MODE', $compta_mode, 'chaine', 0, '', $conf->entity)) {
|
if (!dolibarr_set_const($db, 'COMPTA_MODE', $compta_mode, 'chaine', 0, '', $conf->entity)) {
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user