- parent::handle($args);
-
- if (empty($this->user)) {
- // TRANS: Client error displayed when requesting user information for a non-existing user.
- $this->clientError(_('User not found.'), 404, $this->format);
- return;
- }
-
- $profile = $this->user->getProfile();
-
- if (empty($profile)) {
- // TRANS: Client error displayed when requesting user information for a user without a profile.
- $this->clientError(_('User has no profile.'));
- return;
- }