Mercurial > hg > rc2
diff program/lib/Roundcube/rcube_vcard.php @ 25:bea5a38be938
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Sat, 18 Oct 2025 12:24:31 -0400 |
| parents | 303b85d5b561 |
| children | c32b53434b47 |
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_vcard.php Fri Oct 17 17:31:22 2025 -0400 +++ b/program/lib/Roundcube/rcube_vcard.php Sat Oct 18 12:24:31 2025 -0400 @@ -647,7 +647,7 @@ foreach ($regs2[1] as $attrid => $attr) { $attr = preg_replace('/[\s\t\n\r\0\x0B]/', '', $attr); - if ((list($key, $value) = explode('=', $attr)) && $value) { + if ((@list($key, $value) = explode('=', $attr)) && $value) { if ($key == 'ENCODING') { $value = strtoupper($value); // add next line(s) to value string if QP line end detected @@ -660,7 +660,7 @@ } else { $lc_key = strtolower($key); - $entry[$lc_key] = array_merge((array)$entry[$lc_key], (array)self::vcard_unquote($value, ',')); + $entry[$lc_key] = array_merge((array)($entry[$lc_key]??null), (array)self::vcard_unquote($value, ',')); } } else if ($attrid > 0) {
