Fix warning
This commit is contained in:
parent
807d3b99c9
commit
5d5bbb2b5e
@ -844,7 +844,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
||||
|
||||
$ret = $actioncomm->create($user); // User creating action
|
||||
|
||||
if ($ret > 0 && $conf->global->MAIN_COPY_FILE_IN_EVENT_AUTO) {
|
||||
if ($ret > 0 && !empty($conf->global->MAIN_COPY_FILE_IN_EVENT_AUTO)) {
|
||||
if (is_array($object->attachedfiles) && array_key_exists('paths', $object->attachedfiles) && count($object->attachedfiles['paths']) > 0) {
|
||||
foreach ($object->attachedfiles['paths'] as $key=>$filespath) {
|
||||
$srcfile = $filespath;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user