Fix some PHP8 warnings (#8239)

This commit is contained in:
Aleksander Machniak
2021-10-21 19:52:04 +02:00
parent a94c2a3c05
commit 38f519659c
5 changed files with 86 additions and 7 deletions

View File

@@ -229,7 +229,7 @@ class rcmail_attachment_handler
}
}
else {
$data = $attachment['data'];
$data = $attachment['data'] ?? '';
if (!$data && $attachment['path']) {
$data = file_get_contents($attachment['path']);
}