X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapibareauthaction.php;h=d5bcb59f10cbf30034fc808b884e6353d099fb55;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=2b1e13cca035ca3a439d3cb3c7e3cf3476f1d7d7;hpb=9be368006c94ed17d4ff7bb573dbf1bf93b2272e;p=quix0rs-gnu-social.git diff --git a/lib/apibareauthaction.php b/lib/apibareauthaction.php index 2b1e13cca0..d5bcb59f10 100644 --- a/lib/apibareauthaction.php +++ b/lib/apibareauthaction.php @@ -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; }