php V8 warning
This commit is contained in:
parent
869ec8e461
commit
bc8f20b5cb
@ -5426,7 +5426,7 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
// Create contract
|
// Create contract
|
||||||
if (!empty($conf->global->CONTRACT_CREATE_FROM_INVOICE)) {
|
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");
|
$langs->load("contracts");
|
||||||
|
|
||||||
if ($usercancreatecontract) {
|
if ($usercancreatecontract) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user