update code toward php8 compliance

This commit is contained in:
Philippe GRAND
2022-09-24 14:37:57 +02:00
parent 04f84ffd44
commit fb9db96ecc
3 changed files with 14 additions and 14 deletions

View File

@@ -2143,7 +2143,7 @@ class Commande extends CommonOrder
$line->fetch_optionals();
// multilangs
if (!empty($conf->global->MAIN_MULTILANGS) && !empty($objp->fk_product) && !empty($loadalsotranslation)) {
if (getDolGlobalInt('MAIN_MULTILANGS') && !empty($objp->fk_product) && !empty($loadalsotranslation)) {
$tmpproduct = new Product($this->db);
$tmpproduct->fetch($objp->fk_product);
$tmpproduct->getMultiLangs();