diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 863496dbb..cc84df4a5 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'] = '';