- $this->clientError(_('API method not found.'), $code = 404);
- return;
- }
-
- $profile = $this->user->getProfile();
-
- if (empty($profile)) {
- // TRANS: Error message displayed when referring to a user without a profile.
- $this->clientError(_('User has no profile.'));
- return;