- if (empty($this->user)) {
- $this->clientError(_('No such user.'), 404, $this->format);
- return false;
+ if (!($this->target instanceof Profile)) {
+ // TRANS: Client error displayed when user not found for an action.
+ $this->clientError(_('No such user.'), 404);