Fix null value passed to string functions deprecation notices

- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513
This commit is contained in:
Hypolite Petovan 2022-11-23 13:38:40 -05:00
parent 6b555f64da
commit 0ec7238da4
6 changed files with 7 additions and 7 deletions

View file

@ -233,7 +233,7 @@ class PortableContacts extends BaseModule
}
if ($selectedFields['tags']) {
$tags = str_replace(',', ' ', $contact['keywords']);
$tags = str_replace(',', ' ', $contact['keywords'] ?? '');
$tags = explode(' ', $tags);
$cleaned = [];