You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my address paramters has an umlaut, so I am utf8_encoding it to correctly display it in the vcard.
This works for other fields, but for address, it produces an error.
One of my address paramters has an umlaut, so I am utf8_encoding it to correctly display it in the vcard.
This works for other fields, but for address, it produces an error.
Example:
$vcard->addAddress(null, null, 'street', utf8_decode( 'woërktown' ), null, 'workpostcode', 'Belgium');
array_chunk() expects parameter 1 to be array, bool given
vendor/jeroendesloovere/vcard/src/VCard.php:655
It is this line that is to blame:
$array = array_chunk(
preg_split("//u", $body, -1, PREG_SPLIT_NO_EMPTY), $chunklen);
If i change it to:
$array = array_chunk(str_split($body));
it works.
The text was updated successfully, but these errors were encountered: