Fix phpcs
This commit is contained in:
parent
b5def91b46
commit
036c4bc730
@ -68,8 +68,9 @@ if ($action == 'update') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set boolean (on/off) constants
|
$reg = array();
|
||||||
elseif (preg_match('/^(set|del)_?([A-Z_]+)$/', $action, $reg)) {
|
if (preg_match('/^(set|del)_?([A-Z_]+)$/', $action, $reg)) {
|
||||||
|
// Set boolean (on/off) constants
|
||||||
if (!dolibarr_set_const($db, $reg[2], ($reg[1] === 'set' ? '1' : '0'), 'chaine', 0, '', $conf->entity) > 0) {
|
if (!dolibarr_set_const($db, $reg[2], ($reg[1] === 'set' ? '1' : '0'), 'chaine', 0, '', $conf->entity) > 0) {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user