]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/unsubscribe.php
Fix for source attribution on notices; it was displaying the code instead of the...
[quix0rs-gnu-social.git] / actions / unsubscribe.php
index 4a5863489ec7249d54f3011b82a75dab17d63c8b..57ca15d687442b8cbff85de3c02dd1c7aaac353f 100644 (file)
@@ -74,20 +74,20 @@ class UnsubscribeAction extends Action
         $other_id = $this->arg('unsubscribeto');
 
         if (!$other_id) {
-            $this->clientError(_('No profile id in request.'));
+            $this->clientError(_('No profile ID in request.'));
             return;
         }
 
         $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;
         }