FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 13:57:34 +02:00
parent f98f0bbf6a
commit 4e51fca845

View File

@ -393,7 +393,7 @@ function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = '9.99', $freetag
}
// For multicompany
if (!empty($out) && !empty($conf->multicompany->enabled)) {
if (!empty($out) && isModEnabled('multicompany')) {
$out .= "&entity=".$conf->entity; // Check the entity because we may have the same reference in several entities
}