dolGetGlobalInt -> getDolGlobalInt

Detected with phan -> https://github.com/Dolibarr/dolibarr/actions/runs/7242660297/job/19728384233?pr=26480#step:5:39
This commit is contained in:
MDW 2023-12-18 03:13:37 +01:00
parent 770bc15ca3
commit e49f32ab2d

View file

@ -206,7 +206,7 @@ if (empty($reshook)) {
} elseif ($action == 'reopen' && $usercancreate) {
// Reopen a closed order
if ($object->statut == Commande::STATUS_CANCELED || $object->statut == Commande::STATUS_CLOSED) {
if (dolGetGlobalInt('ORDER_REOPEN_TO_DRAFT')) {
if (getDolGlobalInt('ORDER_REOPEN_TO_DRAFT')) {
$result = $object->setDraft($user, $idwarehouse);
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');