Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-03-12 11:38:54 +0300
committerAleksander Machniak <alec@alec.pl>2022-03-12 11:38:54 +0300
commitbfef4691cf049ff851f7e77f078fd5e1554a7f6d (patch)
tree493628b616564458df9cce72dcfa988bbc72167b
parentf9af15c8d15fb556cf406c8cd5658a536f43b972 (diff)
Fix PHP8 warning (#8466)
-rw-r--r--program/lib/Roundcube/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 96a0ec8a7..303e7f8b7 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -2282,7 +2282,7 @@ class rcube_imap extends rcube_storage
*/
protected function is_attachment_part($part)
{
- if (is_array($part[2]) && !empty($part[2]) && empty($part[3])) {
+ if (!empty($part[2]) && is_array($part[2]) && empty($part[3])) {
$params = array_map('strtolower', (array) $part[2]);
$find = ['name', 'filename', 'name*', 'filename*', 'name*0', 'filename*0', 'name*0*', 'filename*0*'];