Skip to content

Commit 2d66798

Browse files
author
epriestley
committed
Fix one more issue for username "0".
1 parent b77b4f7 commit 2d66798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/auth/oauth/provider/PhabricatorOAuthProviderGitHub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function retrieveUserProfileImage() {
112112

113113
public function retrieveUserAccountURI() {
114114
$username = $this->retrieveUserAccountName();
115-
if ($username) {
115+
if (strlen($username)) {
116116
return 'https://github.com/'.$username;
117117
}
118118
return null;

0 commit comments

Comments
 (0)