X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Funsubscribe.php;h=6bb10d448b3e663ceb85b214f8a0db774e39b421;hb=22255da735d1fc55466be51c3fae2a3d0b78e484;hp=4a5863489ec7249d54f3011b82a75dab17d63c8b;hpb=b3b3af9a2eff10c272bb213eccd3dd3060bc5830;p=quix0rs-gnu-social.git diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php index 4a5863489e..6bb10d448b 100644 --- a/actions/unsubscribe.php +++ b/actions/unsubscribe.php @@ -81,13 +81,13 @@ class UnsubscribeAction extends Action $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; }