$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;
}