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

@ -327,7 +327,7 @@ class Profile extends BaseModule
'$submit' => $this->t('Submit'),
'$lbl_info1' => $lbl_info1,
'$lbl_info2' => $this->t('Their personal note'),
'$reason' => trim($contact['reason']),
'$reason' => trim($contact['reason'] ?? ''),
'$infedit' => $this->t('Edit contact notes'),
'$common_link' => 'contact/' . $contact['id'] . '/contacts/common',
'$relation_text' => $relation_text,