Skip to content

Commit

Permalink
Merge pull request #447 from VladyslavKurmaz/master
Browse files Browse the repository at this point in the history
Steam provider xml parsing error, fix #446
  • Loading branch information
StorytellerCZ committed Apr 13, 2015
2 parents f45f46c + 9d6f056 commit 0d3d9d3
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions additional-providers/hybridauth-steam/Providers/Steam.php
Expand Up @@ -70,13 +70,29 @@ function getUserProfileLegacyAPI()
return false;
}

$this->user->profile->displayName = property_exists($data, 'steamID') ? (string)$data->steamID : '';
$this->user->profile->firstName = property_exists($data, 'realname') ? $data->realname : '';
$this->user->profile->photoURL = property_exists($data, 'avatarfull') ? $data->avatarfull : '';
$this->user->profile->description = property_exists($data, 'summary') ? (string)$data->summary : '';
$this->user->profile->region = property_exists($data, 'location') ? (string)$data->location : '';
$this->user->profile->profileURL = property_exists($data, 'customURL')
? "http://steamcommunity.com/id/{$data->customURL}/"
: "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
# store the user profile.
//$this->user->profile->identifier = "";
$this->user->profile->profileURL = property_exists($data, 'customURL') ? "http://steamcommunity.com/id/{$data->customURL}/" : "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
$this->user->profile->webSiteURL = "";
$this->user->profile->photoURL = property_exists($data, 'avatarFull') ? (string)$data->avatarFull : '';
$this->user->profile->displayName = property_exists($data, 'steamID') ? (string)$data->steamID : '';
$this->user->profile->description = property_exists($data, 'summary') ? (string)$data->summary : '';
$this->user->profile->firstName = property_exists($data, 'realname') ? (string)$data->realname : '';
$this->user->profile->lastName = "";
$this->user->profile->gender = "";
$this->user->profile->language = "";
$this->user->profile->age = "";
$this->user->profile->birthDay = "";
$this->user->profile->birthMonth = "";
$this->user->profile->birthYear = "";
$this->user->profile->email = "";
$this->user->profile->emailVerified = "";
$this->user->profile->phone = "";
$this->user->profile->address = "";
$this->user->profile->country = "";
$this->user->profile->region = property_exists($data, 'location') ? (string)$data->location : '';
$this->user->profile->city = "";
$this->user->profile->zip = "";

}
}

0 comments on commit 0d3d9d3

Please sign in to comment.