]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/removepeopletag.php
Some cleanups:
[quix0rs-gnu-social.git] / actions / removepeopletag.php
index 8192e86b44fd4246c932136a92f6c01eee9f5022..3d9cfe5332de28ebec2a053d7ef8edaba92aed62 100644 (file)
@@ -129,7 +129,7 @@ class RemovepeopletagAction extends Action
 
         if (!$ptag) {
             $user = User::getKV('id', $this->tagged->id);
-            if ($user) {
+            if ($user instanceof User) {
                 $this->clientError(
                         // TRANS: Client error displayed when an unknown error occurs while delisting a user.
                         // TRANS: %s is a username.