mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #27235 from grandoc/new_branch_28_12_2023
fix : Warning: Undefined property: stdClass:: in /home/httpd/vhosts/a…
This commit is contained in:
commit
dc525dd78e
|
|
@ -134,10 +134,10 @@ function getMultidirOutput($object, $module = '')
|
|||
if ($module == 'fichinter') {
|
||||
$module = 'ficheinter';
|
||||
}
|
||||
if (isset($conf->$module)) {
|
||||
if (isset($conf->$module) && property_exists($conf->$module, 'multidir_output')) {
|
||||
return $conf->$module->multidir_output[(!empty($object->entity) ? $object->entity : $conf->entity)];
|
||||
} else {
|
||||
return 'error-diroutput-not-defined-ffor-this-object='.$module;
|
||||
return 'error-diroutput-not-defined-for-this-object='.$module;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user