Fix php 8 errors
This commit is contained in:
parent
9877f8281f
commit
f649fcf8cf
@ -40,7 +40,7 @@ if ($action == 'presend') {
|
||||
$titreform = 'SendMail';
|
||||
|
||||
$object->fetch_projet();
|
||||
|
||||
if (!isset($file)) $file = null;
|
||||
$ref = dol_sanitizeFileName($object->ref);
|
||||
if (!in_array($object->element, array('user', 'member'))) {
|
||||
//$fileparams['fullname'] can be filled from the card
|
||||
@ -57,7 +57,7 @@ if ($action == 'presend') {
|
||||
}
|
||||
}
|
||||
|
||||
$file = $fileparams['fullname'];
|
||||
$file = isset($fileparams['fullname'])?$fileparams['fullname']:null;
|
||||
}
|
||||
|
||||
// Define output language
|
||||
|
||||
Loading…
Reference in New Issue
Block a user