- if (empty($this->user)) {
- $this->clientError(_('No such user.'), 404, $this->format);
- return;
+ if (empty($this->target)) {
+ // TRANS: Client error displayed when checking group membership for a non-existing user.
+ $this->clientError(_('No such user.'), 404);