]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/apibareauthaction.php
Faster NodeInfo stats
[quix0rs-gnu-social.git] / lib / apibareauthaction.php
index 2b1e13cca035ca3a439d3cb3c7e3cf3476f1d7d7..d5bcb59f10cbf30034fc808b884e6353d099fb55 100644 (file)
@@ -74,11 +74,8 @@ class ApiBareAuthAction extends ApiAuthAction
         }
 
         // check whether a user has been specified somehow
-        $id           = $this->arg('id');
-        $user_id      = $this->arg('user_id');
-        $screen_name  = $this->arg('screen_name');
-
-        if (empty($id) && empty($user_id) && empty($screen_name)) {
+        if (!$this->arg('id') && !$this->arg('user_id')
+                && mb_strlen($this->arg('screen_name'))===0) {
             return true;
         }