From: Mikael Nordfeldth Date: Mon, 10 Nov 2014 10:59:01 +0000 (+0100) Subject: $header was always true due to previous if statement X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17647dc3ffb97f1f1cd37da978a3d80b3475cf00;p=quix0rs-gnu-social.git $header was always true due to previous if statement --- diff --git a/lib/apiauthaction.php b/lib/apiauthaction.php index 683d42e705..a7b212d79a 100644 --- a/lib/apiauthaction.php +++ b/lib/apiauthaction.php @@ -310,7 +310,7 @@ class ApiAuthAction extends ApiAction // By default, basic auth users have rw access $this->access = self::READ_WRITE; - if (!$this->auth_user instanceof User && ($required || isset($_SERVER['PHP_AUTH_USER']))) { + if (!$this->auth_user instanceof User && isset($_SERVER['PHP_AUTH_USER'])) { $msg = sprintf( "basic auth nickname = %s", $this->auth_user_nickname