FIX - PHP8 Warnning admin commande

This commit is contained in:
Anthony Berton 2023-01-25 15:35:09 +01:00
parent 373c8d83df
commit 79b7b106fc

View File

@ -117,7 +117,7 @@ if ($action == 'updateMask') {
} elseif ($action == 'del') {
$ret = delDocumentModel($value, $type);
if ($ret > 0) {
if ($conf->global->COMMANDE_ADDON_PDF == "$value") {
if (getDolGlobalString('COMMANDE_ADDON_PDF') == $value) {
dolibarr_del_const($db, 'COMMANDE_ADDON_PDF', $conf->entity);
}
}