summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-13 03:01:22 -0800
committerEvan Prodromou <evan@status.net>2010-01-13 03:01:22 -0800
commit601c3713320c0fe4c4d9f97b486d279bb6884de9 (patch)
tree14ec8a91254d12c463b70f494d61c6aafb070de6
parent430bd69312a27f9f97bda78566a78c9f7eec1f14 (diff)
correct check for error in subscribe and unsubscribe actions
-rw-r--r--actions/subscribe.php2
-rw-r--r--actions/unsubscribe.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php
index 4c46806e4..a90d7facd 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -58,7 +58,7 @@ class SubscribeAction extends Action
$result = subs_subscribe_to($user, $other);
- if($result != true) {
+ if (is_string($result)) {
$this->clientError($result);
return;
}
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index dbb4e4153..6bb10d448 100644
--- a/actions/unsubscribe.php
+++ b/actions/unsubscribe.php
@@ -87,7 +87,7 @@ class UnsubscribeAction extends Action
$result = subs_unsubscribe_to($user, $other);
- if ($result != true) {
+ if (is_string($result)) {
$this->clientError($result);
return;
}