diff --git a/src/applications/auth/oauth/provider/PhabricatorOAuthProviderGitHub.php b/src/applications/auth/oauth/provider/PhabricatorOAuthProviderGitHub.php index c91b30a44f..5313efbe9a 100644 --- a/src/applications/auth/oauth/provider/PhabricatorOAuthProviderGitHub.php +++ b/src/applications/auth/oauth/provider/PhabricatorOAuthProviderGitHub.php @@ -112,7 +112,7 @@ final class PhabricatorOAuthProviderGitHub extends PhabricatorOAuthProvider { public function retrieveUserAccountURI() { $username = $this->retrieveUserAccountName(); - if ($username) { + if (strlen($username)) { return 'https://github.com/'.$username; } return null;