From: Hypolite Petovan Date: Tue, 11 May 2021 01:52:26 +0000 (-0400) Subject: Check unparseURL parameter type in APContact::getByURL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=48ac619599d5c737a92786b8156979fea25aba49;p=friendica.git Check unparseURL parameter type in APContact::getByURL - Address https://github.com/friendica/friendica/issues/10167#issuecomment-832421258 --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 863496dbb0..cc84df4a54 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -235,7 +235,7 @@ class APContact unset($parts['path']); if (empty($apcontact['addr'])) { - if (!empty($apcontact['nick'])) { + if (!empty($apcontact['nick']) && is_array($parts)) { $apcontact['addr'] = $apcontact['nick'] . '@' . str_replace('//', '', Network::unparseURL($parts)); } else { $apcontact['addr'] = '';