FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 14:31:37 +02:00
parent 78612221b3
commit 26e8aa4b92

View File

@ -143,7 +143,7 @@ function getPublicJobPositionUrl($mode, $ref = '', $localorexternal = 0)
}*/
// 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
}