Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_mime.php @ 25:bea5a38be938
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Sat, 18 Oct 2025 12:24:31 -0400 |
| parents | b631c1c7a3ce |
| children | c32b53434b47 |
comparison
equal
deleted
inserted
replaced
| 24:e53add5ddac5 | 25:bea5a38be938 |
|---|---|
| 835 'message/rfc822' => array('eml'), | 835 'message/rfc822' => array('eml'), |
| 836 'text/x-mail' => array('eml'), | 836 'text/x-mail' => array('eml'), |
| 837 ); | 837 ); |
| 838 | 838 |
| 839 foreach ($aliases as $mime => $exts) { | 839 foreach ($aliases as $mime => $exts) { |
| 840 $mime_types[$mime] = array_unique(array_merge((array) $mime_types[$mime], $exts)); | 840 $mime_types[$mime] = array_unique(array_merge((array) ($mime_types[$mime]??null), $exts)); |
| 841 | 841 |
| 842 foreach ($exts as $ext) { | 842 foreach ($exts as $ext) { |
| 843 if (!isset($mime_extensions[$ext])) { | 843 if (!isset($mime_extensions[$ext])) { |
| 844 $mime_extensions[$ext] = $mime; | 844 $mime_extensions[$ext] = $mime; |
| 845 } | 845 } |
