FIX php8 compatibility
This commit is contained in:
parent
7641ec3fe3
commit
a7697f6d9c
@ -83,7 +83,7 @@ if (! empty($conf->global->EXPENSEREPORT_PREFILL_DATES_WITH_CURRENT_MONTH)) {
|
|||||||
$rootfordata = DOL_DATA_ROOT;
|
$rootfordata = DOL_DATA_ROOT;
|
||||||
$rootforuser = DOL_DATA_ROOT;
|
$rootforuser = DOL_DATA_ROOT;
|
||||||
// If multicompany module is enabled, we redefine the root of data
|
// If multicompany module is enabled, we redefine the root of data
|
||||||
if (!empty($conf->multicompany->enabled) && !empty($conf->entity) && $conf->entity > 1) {
|
if (isModEnabled('multicompany') && !empty($conf->entity) && $conf->entity > 1) {
|
||||||
$rootfordata .= '/'.$conf->entity;
|
$rootfordata .= '/'.$conf->entity;
|
||||||
}
|
}
|
||||||
$conf->expensereport->dir_output = $rootfordata.'/expensereport';
|
$conf->expensereport->dir_output = $rootfordata.'/expensereport';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user