summaryrefslogtreecommitdiff
path: root/actions/unsubscribe.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/unsubscribe.php')
-rw-r--r--actions/unsubscribe.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index 4a5863489..6bb10d448 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;
}