php V8 warning

This commit is contained in:
BENKE Charlene 2022-05-27 16:40:18 +02:00 committed by GitHub
parent 869ec8e461
commit bc8f20b5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5426,7 +5426,7 @@ if ($action == 'create') {
// Create contract
if (!empty($conf->global->CONTRACT_CREATE_FROM_INVOICE)) {
if ($conf->contrat->enabled && $object->statut == Facture::STATUS_VALIDATED) {
if (!empty($conf->contrat->enabled) && $object->statut == Facture::STATUS_VALIDATED) {
$langs->load("contracts");
if ($usercancreatecontract) {