Fixing style errors.

This commit is contained in:
stickler-ci 2022-09-05 11:50:10 +00:00
parent 7344b1946a
commit c2a7741607

View File

@ -45,7 +45,7 @@ if ($action == 'presend') {
if (!in_array($object->element, array('user', 'member'))) { if (!in_array($object->element, array('user', 'member'))) {
//$fileparams['fullname'] can be filled from the card //$fileparams['fullname'] can be filled from the card
//Get also the main_lastdoc field of $object. If not found, try to guess with following code //Get also the main_lastdoc field of $object. If not found, try to guess with following code
if(!empty($object->last_main_doc) && is_readable(DOL_DATA_ROOT.'/'.$object->last_main_doc) && is_file ( DOL_DATA_ROOT.'/'.$object->last_main_doc )){ if (!empty($object->last_main_doc) && is_readable(DOL_DATA_ROOT.'/'.$object->last_main_doc) && is_file(DOL_DATA_ROOT.'/'.$object->last_main_doc)) {
$fileparams['fullname'] = DOL_DATA_ROOT.'/'.$object->last_main_doc; $fileparams['fullname'] = DOL_DATA_ROOT.'/'.$object->last_main_doc;
} else { } else {
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';