From c2a7741607bed10d2e9995b5c287a535d2b71c20 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 5 Sep 2022 11:50:10 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/tpl/card_presend.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index 18668e7fae2..826a8e0a12a 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -45,9 +45,9 @@ if ($action == 'presend') { if (!in_array($object->element, array('user', 'member'))) { //$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 - 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; - } else { + 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; + } else { include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; // Special case if ($object->element == 'invoice_supplier') {