correct check for error in subscribe and unsubscribe actions

This commit is contained in:
Evan Prodromou 2010-01-13 03:01:22 -08:00
parent 430bd69312
commit 601c371332
2 changed files with 2 additions and 2 deletions

View File

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

View File

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