diff --git a/components/com_contact/src/Model/ContactModel.php b/components/com_contact/src/Model/ContactModel.php index 5aa1483f720f6..dd0f3eb7e210e 100644 --- a/components/com_contact/src/Model/ContactModel.php +++ b/components/com_contact/src/Model/ContactModel.php @@ -364,6 +364,10 @@ protected function buildContactExtendedData($contact) $contact->articles = null; } + if (empty($contact->user_id)) { + return; + } + // Get the profile information for the linked user $userModel = $this->bootComponent('com_users')->getMVCFactory() ->createModel('User', 'Administrator', ['ignore_request' => true]);