]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/addpeopletag.php
Some cleanups:
[quix0rs-gnu-social.git] / actions / addpeopletag.php
index b501ce0fd9679b245d36f300164f7b433e9cce26..551e9688597e6433dfd84a13d0aa0c2cc0c042d1 100644 (file)
@@ -127,7 +127,8 @@ class AddpeopletagAction extends Action
 
         if (!$ptag) {
             $user = User::getKV('id', $id);
-            if ($user) {
+
+            if ($user instanceof User) {
                 $this->clientError(
                         // TRANS: Client error displayed when an unknown error occurs when adding a user to a list.
                         // TRANS: %s is a username.