forked from GNUsocial/gnu-social
		
	$header was always true due to previous if statement
This commit is contained in:
		@@ -310,7 +310,7 @@ class ApiAuthAction extends ApiAction
 | 
				
			|||||||
            // By default, basic auth users have rw access
 | 
					            // By default, basic auth users have rw access
 | 
				
			||||||
            $this->access = self::READ_WRITE;
 | 
					            $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(
 | 
					                $msg = sprintf(
 | 
				
			||||||
                    "basic auth nickname = %s",
 | 
					                    "basic auth nickname = %s",
 | 
				
			||||||
                    $this->auth_user_nickname
 | 
					                    $this->auth_user_nickname
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user