$other_id = $this->arg('unsubscribeto');
if (!$other_id) {
- $this->clientError(_('No profile id in request.'));
+ $this->clientError(_('No profile ID in request.'));
return;
}
$other = Profile::staticGet('id', $other_id);
if (!$other) {
- $this->clientError(_('No profile with that id.'));
+ $this->clientError(_('No profile with that ID.'));
return;
}
$result = subs_unsubscribe_to($user, $other);
- if ($result != true) {
+ if (is_string($result)) {
$this->clientError($result);
return;
}