mirror of
https://github.com/friendica/friendica
synced 2025-04-30 03:44:24 +02:00
Exceptions and warnings fixed
This commit is contained in:
parent
ac087749e3
commit
8cf82a8449
2 changed files with 7 additions and 2 deletions
|
@ -259,7 +259,7 @@ class Email
|
|||
|
||||
if ((isset($params['filename']) && $params['filename']) || (isset($params['name']) && $params['name'])) {
|
||||
// filename may be given as 'Filename' or 'Name' or both
|
||||
$filename = ($params['filename'])? $params['filename'] : $params['name'];
|
||||
$filename = $params['filename'] ?? $params['name'];
|
||||
// filename may be encoded, so see imap_mime_header_decode()
|
||||
$attachments[$filename] = $data; // this is a problem if two files have same name
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue